Movieclip to gotoAndPlay when root timeline has reached a specific frame
Hi,
I’m trying to get a movieclip on my main timeline to jump to a frame when the user has clicked to the next frame, but I don’t want the movieclip to go to that specific frame until the movieclip itself has reach a certain frame.
I bet this is pretty noob question, but I’m probably a bit slow because I’ve tried reading tutorials and everything, but can’t get this simple code to work inside the movie clip:
stop();
if ((root).currentFrame == (3)) {
root.mc.gotoAndPlay ("loop");
}
else
{
root.mc.gotoAndPlay (“continue1"));
}
I’ve also tried this:
stop();
{
if ((root).currentFrame == 3) {
this.gotoAndPlay(272);
}
else
{
this.gotoAndPlay(283);
}
}
And many other variations..
I don’t really understand anything anymore about coding..
I just wish someone could tell me how I can get this to work before I do something drastic or my head explodes.
Thanks!
