Position (Sound.position Property); Setpan (Sound.setpan Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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
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,
determines which speaker (left or right) the sound plays through.
pan
Availability: ActionScript 1.0; Flash Player 5
Parameters
- An integer specifying the left-right balance for a sound. The range of valid
value:Number
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()
1112
ActionScript classes
for a sample usage of this property.
for a sample usage of this method.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF