1112
ActionScript classes
my_sound.attachSound("mySoundID");
my_sound.onSoundComplete = callback1;
my_sound.start();
See also
onLoad (Sound.onLoad handler)
position (Sound.position property)
public position : Number [read-only]
The number of milliseconds a sound has been playing. If the sound is looped, the position is
reset to 0 at the beginning of each loop.
Availability:
ActionScript 1.0; Flash Player 6
Example
See
Sound.duration
for a sample usage of this property.
See also
duration (Sound.duration property)
setPan (Sound.setPan method)
public setPan(value:Number) : Void
Determines how the sound is played in the left and right channels (speakers). For mono
sounds,
pan
determines which speaker (left or right) the sound plays through.
Availability:
ActionScript 1.0; Flash Player 5
Parameters
value
:Number
- An integer specifying the left-right balance for a sound. The range of valid
values is -100 to 100, where -100 uses only the left channel, 100 uses only the right channel,
and 0 balances the sound evenly between the two channels.
Example
See
Sound.getPan()
for a sample usage of this method.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...