Skip to main content
March 6, 2008
Answered

How to jump to previous frame at end of movie clip?

  • March 6, 2008
  • 1 reply
  • 240 views
Using Flash Professional 8. I have a menu with a Play Movie button on frame 1, and a movie clip on frame 2. On Frame 1, the action script reads:

stop();

myBtn_btn.onRelease = function(){
gotoAndStop(2);
};

Thus, on the release of the button on frame 1, it goes to frame 2 and begins to play the flv movie clip (using FLVPlayback). After 9 minutes, when the movie clip is over, it stays on frame 2 and the playhead of the movie clip goes back to the beginning.

What action script should I use to tell it to go to frame 1 at the end of the 9-minute movie clip?

Thanks for any help.
This topic has been closed for replies.
Correct answer
I got the answer to this question at actionscript.org

Here is the answer below. Use the code below in frame 2 and replace FLVPlayBack with the instance name of my component (movie clip) in frame 2:

function complete(evt){
gotoAndStop(1);
}
FLVPlayBack.addEventListener("complete",complete);

1 reply

Correct answer
March 6, 2008
I got the answer to this question at actionscript.org

Here is the answer below. Use the code below in frame 2 and replace FLVPlayBack with the instance name of my component (movie clip) in frame 2:

function complete(evt){
gotoAndStop(1);
}
FLVPlayBack.addEventListener("complete",complete);