1
votes

I have a button that you hover over that sits on one frame - it goes with the movie clip that sits on the very next frame ( both of these are in the same key frame ) and plays it on frame 134. After that movie clip has played, I would like the timeline to take you to the next frame.

I can not use this:

stop(); 
if( MovieClip(root).currentFrame < MovieClip(root).totalFrames ) {
    MovieClip(root).nextFrame();
}

I have tried to put that code in the last frame of the mc, but it won't work.

Right now even with the stop command it still loops.

1
where is the movieclip?Teejay
updated the information...user2250171
What frame is your code located in?Jonny Henly
it is in the last frame of the movie clipuser2250171
I'd suggest a simple parent.play() on the last frame of your mcTeejay

1 Answers

0
votes

Try this.parent instead of root like so,

stop(); 

if(MovieClip(this.parent).currentFrame < MovieClip(this.parent).totalFrames)
{  
    MovieClip(this.parent).nextFrame(); 
}

Best luck.