Skip to main content
November 23, 2006
Question

Easy problem.. anyone got a min?

  • November 23, 2006
  • 1 reply
  • 133 views
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
This topic has been closed for replies.

1 reply

Participant
November 23, 2006
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