SWiSH Player Support
SWF5 or later - Not Supported (Use File | Test | Browser/Player)
Syntax
soundObject.setPan(amount);
Arguments
amount: an integer between -100 (full left pan) and 100 (full right pan). A setting of zero sets even balance between the left and right channels.
Returns
Nothing.
Description
Method; sets the pan level for the specified Sound object. A setting of -100 plays the sound only in the left speaker, while a setting of 100 plays the sound only in the right speaker. A setting of zero plays the sound evenly in both speakers.
Sample
onLoad() {
introSound = new Sound(mySprite);
introSound.setPan(-100);
}
// creates a new Sound object "introSound" for the target "mySprite" and sets the pan level to full left