window.runtime propertywindow.runtime.flash.media.SoundTransform
Runtime Versions:  1.0

The SoundTransform class contains properties for volume and panning.

See also

Microphone.soundTransform
SoundChannel.soundTransform
SoundMixer.soundTransform


Properties
 PropertyDefined By
  leftToLeft : Number
A value, from 0 (none) to 1 (all), specifying how much of the left input is played in the left speaker.
SoundTransform
  leftToRight : Number
A value, from 0 (none) to 1 (all), specifying how much of the left input is played in the right speaker.
SoundTransform
  pan : Number
The left-to-right panning of the sound, ranging from -1 (full pan left) to 1 (full pan right).
SoundTransform
  rightToLeft : Number
A value, from 0 (none) to 1 (all), specifying how much of the right input is played in the left speaker.
SoundTransform
  rightToRight : Number
A value, from 0 (none) to 1 (all), specifying how much of the right input is played in the right speaker.
SoundTransform
  volume : Number
The volume, ranging from 0 (silent) to 1 (full volume).
SoundTransform
Public Methods
 MethodDefined By
  
SoundTransform(vol:Number = 1, panning:Number = 0)
Creates a SoundTransform object.
SoundTransform
Property Detail
leftToLeftproperty
leftToLeft:Number
Runtime Versions:  1.0

A value, from 0 (none) to 1 (all), specifying how much of the left input is played in the left speaker.

leftToRightproperty 
leftToRight:Number
Runtime Versions:  1.0

A value, from 0 (none) to 1 (all), specifying how much of the left input is played in the right speaker.

panproperty 
pan:Number
Runtime Versions:  1.0

The left-to-right panning of the sound, ranging from -1 (full pan left) to 1 (full pan right). A value of 0 represents no panning (balanced center between right and left).

rightToLeftproperty 
rightToLeft:Number
Runtime Versions:  1.0

A value, from 0 (none) to 1 (all), specifying how much of the right input is played in the left speaker.

rightToRightproperty 
rightToRight:Number
Runtime Versions:  1.0

A value, from 0 (none) to 1 (all), specifying how much of the right input is played in the right speaker.

volumeproperty 
volume:Number
Runtime Versions:  1.0

The volume, ranging from 0 (silent) to 1 (full volume).

Constructor Detail
SoundTransform()Constructor
function SoundTransform(vol:Number = 1, panning:Number = 0)
Runtime Versions:  1.0

Creates a SoundTransform object.

Parameters
vol:Number (default = 1) — The volume, ranging from 0 (silent) to 1 (full volume).
 
panning:Number (default = 0) — The left-to-right panning of the sound, ranging from -1 (full pan left) to 1 (full pan right). A value of 0 represents no panning (center).