Summary

I l @ ve RuBoard

You can use ActionScript to trigger sounds after their Linkage properties have been set so that they will export with the movie. You need to refer to the sound by its name specified in its Linkage properties.

To play a sound, you must first create a sound object. Then you must use attachSound to associate the sound with the sound object. Then you need to use the start command.

You can adjust the volume of a sound with the setVolume command. You can adjust the stereo balance of a sound with the setPan command.

You can create more complex variations of your sound by creating a sound transform object. This allows you to modify how much sound from each stereo channel goes to each speaker.

You can track the progress of a sound using the position property of the sound object. The total length of a sound can be determined with the duration property. This can be used to determine when a sound is finished playing, or you can use an onSoundComplete function.

I l @ ve RuBoard


Sams Teach Yourself Flash MX ActionScript in 24 Hours
Sams Teach Yourself Flash MX ActionScript in 24 Hours
ISBN: 0672323850
EAN: 2147483647
Year: 2002
Pages: 272

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net