Skip to main content
Known Participant
January 21, 2013
Answered

root.nextframe not working

  • January 21, 2013
  • 1 reply
  • 623 views

Does anyone know why the code

on (release) {

          root.nextFrame(5);

}

would not work? It is on a button and for some reason it is not working on one frame?

Thanks for your help!

This topic has been closed for replies.
Correct answer Ned Murphy

In AS2 it is "_root", and nextFrame() does not accept any arguments, it only does what it says, goes to the next frame in the timeline.  If you want to go to frame 5 and frame 5 is not the next frame, then you need to use gotoAndStop(5).

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
January 21, 2013

In AS2 it is "_root", and nextFrame() does not accept any arguments, it only does what it says, goes to the next frame in the timeline.  If you want to go to frame 5 and frame 5 is not the next frame, then you need to use gotoAndStop(5).

Known Participant
January 21, 2013

You are right! Something so simple that I accidently erase. Duh!

Thank you! again

Ned Murphy
Legend
January 21, 2013

You're welcome