Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

root.nextframe not working

New Here ,
Jan 21, 2013 Jan 21, 2013

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!

TOPICS
ActionScript
587
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 21, 2013 Jan 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).

Translate
LEGEND ,
Jan 21, 2013 Jan 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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2013 Jan 21, 2013

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

Thank you! again

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2013 Jan 21, 2013
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines