Sound in Flash Actionscript
No Reply
March 22nd, 2008

For using a sound in Flash Actionscript we must use Linkage properties and choose Export for Actionscript option. Look at this picture :
Choose a suitable name for Identifier, because you will need it in Actionscript.
In next move we should make an object from our sound :
mySound = new Sound();
Then with the name we choose for Identifier before we attach it to our object:
mySound.attachSound("test");
With start method we can make our sound file play, the first parameter will tell Flash to start sound at the specific point (in seconds). Second parameter will specify number of loops :
mySound.start(0,99999);