all groups > flash actionscript > november 2006 >
You're in the

flash actionscript

group:

Easy problem.. anyone got a min?


Easy problem.. anyone got a min? Benappease
11/23/2006 6:15:53 PM
flash actionscript:
Hi, this site helped me before I'm hoping you can help me again :)

I have a audio event loaded into a single keyframe and when that audio event
finishes (ie comes to the end of the 3 minute track) I want it to start playing
the next keyframe which also has a similar audio event. Is there a bit of
action script I can drop in to do this?

.. any advice would be much appreciated :)

thanks
ben
Re: Easy problem.. anyone got a min? rzt
11/23/2006 7:07:18 PM
You could use the onSoundComplete event handler. Basically, something like:

var track:Sound;
track = new Sound();
track.loadSound("mysong1.mp3");
track.onSoundComplete = function(){
gotoAndPlay(2);
}

...I think. I'm pretty new at this, but I'm trying.

RZT
AddThis Social Bookmark Button