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

trouble navigating the timeline using this.nextframe

Guest
Mar 26, 2009 Mar 26, 2009

Copy link to clipboard

Copied

I am really new to actionscript 3 and am having some trouble wrapping my brain around this. I have what basically amounts to a slideshow with navigation. I have a menu frame that has buttons, that when clicked, move down the timeline to a specific frame and stops. From there the navigation has 3 buttons..."menu" (goes back to menu) and "previous" and "next" which have actions associated with it to go to next frame or previous frame. I have an actions layers that has the code in it and it works fine from the menu (attached is the menu actionscript) as long as I click on the item that is on the keyframe directly under the keyframe containing the actionscript. How can I get the frames that aren't directly under the actionscript frame to use the actions?

Attached is the code for the menu keyframe and the slides beyond it
TOPICS
ActionScript

Views

383

Translate

Translate

Report

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 ,
Mar 26, 2009 Mar 26, 2009

Copy link to clipboard

Copied

LATEST
It would be better to use frame labels than frame numbers. You can still gotoAndStop("label name") instead of using the number, and it has the advantage that currentLabel will refer to the label that is currently in place. So checking on frame 42 to see if the currentFrame is 41 will obviously fail, but checking the currentLabel to see if it's the label on frame 41 will work ok.

Votes

Translate

Translate

Report

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