Nov 24
Downhere is code from load sound from LIBRARY
Before doing this. you need to give a name for the sound by using Linkage.

var snd:sndClass= new sndClass();
snd.play();
if you want you sound to repeat you need to type like this:
snd.play(0,5);
//Loop 5 times
If you want to stop sound that is playing you need to use:
SoundMixer.stopAll();
ADDCHILD
is use for adding object from libraly or External file but in this case we will load from library
Before doing this. you need to give a name for the MC by using Linkage.

var mc:treeClass= new treeClass();
addChild(mc);
Recent Comments