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

AS2 button actions not working

New Here ,
Nov 08, 2013 Nov 08, 2013

I've created a dropdown menu movie clip, and I want the various buttons in the dropdowns to link to various Scenes.

When I test the movie the dropdown menus perform as intended, and the buttons appear to have rollover states, but they do not link to my additional Scenes.

I have gone into the movie clip containing the buttons, and given the buttons instace names, and then added the following AS2 script to go to the next scene, but it does not work:

displayB_btn.onRelease=function() {

    gotoAndStop("Scene 2",1);

}

In a nutshell, I cannot move beyond Scene 1.

I have tried making the instances movie clips rather than buttons, but that has created its own problems.

Hope someone can help.

Thanks in advance.

TOPICS
ActionScript
473
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

Community Expert , Nov 08, 2013 Nov 08, 2013

in as2, do not use scenes for navigation and do not use the goto functions.

use frame labels and use the goto methods:

_root.gotoAndStop("scene2_frame1");

Translate
Community Expert ,
Nov 08, 2013 Nov 08, 2013
LATEST

in as2, do not use scenes for navigation and do not use the goto functions.

use frame labels and use the goto methods:

_root.gotoAndStop("scene2_frame1");

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