Play the animation after the audio is completed

what should i do to make the animation plays after the audio is finished. I’m using the attach sound to play audio. Thanks.

Use the onSoundComplete handler… :stuck_out_tongue:

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary664.html

thanks. I did use the onSoundComplete handler, but…it not working as i wanted to be. Below is my code:

ACTION SCRIPT

stop();
isSoundCompleted=0;
mysound = new Sound(this);
mysound.attachSound(“Dialog1”);
mysound.start();
mysound.onSoundComplete=function() {
isSoundCompleted=1;
mysound.stop();
delete mysound;
}

After the dialog 1 completed, it should be an animation start to play. But, it doesn’t. I think it is b’coz i used the stop () function. But, if i didn’t use this, all the animation will play together. So, i hope you understand what i trying to say here and maybe you could help me out by giving me another solution. Thanks.

[AS]mySound.onSoundComplete = function() {
play();
};[/AS]
??