Skip to main content
Participating Frequently
February 1, 2015
Answered

Can’t get my dropdown menu buttons to link to another scene.

  • February 1, 2015
  • 1 reply
  • 710 views

I can’t get my dropdown menu buttons to link to other scenes within the same Flash file.  The buttons are unresponsive during playback – as if no code were attached to it.  Here’s what I have as my AS2 code on the dropped button that is supposed to link to the "Published" scene/page:

on(release){

_root.gotoAndPlay("published", 1);

}

I'm working with Actionscript 2.0 in Flash CS6.

Any help would be appreciated!

Thanks,

Robert

This topic has been closed for replies.
Correct answer kglad

you can use different scenes.

but don't use scene info for navigation (in your actionscript).

eg, if you want to use a goto to the 18th frame of scene 5, label that frame (eg, 'frame18_scene5') and use:

_root.gotoAndPlay('frame18_scene5');

1 reply

kglad
Community Expert
Community Expert
February 1, 2015

don't use scenes for navigation with as2.

label your frames and use frame labels to navigate.

Tic_TocAuthor
Participating Frequently
February 1, 2015

 

Thanks for the suggestion, kglad.

I could place the entire site in one scene and simply program the buttons with

On(release){gotoAndPlay(Frame#);}

The biggest problem with that is each scene is distinctly different; different layers, graphics, etc.  Placing everything in one scene would create a mess and a number of discrepancies. There must be a way to link to different scenes.  Correct? Non-dropdown buttons have no issue with linking to other scenes; it seems odd that a dropdown button would.

 

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 1, 2015

you can use different scenes.

but don't use scene info for navigation (in your actionscript).

eg, if you want to use a goto to the 18th frame of scene 5, label that frame (eg, 'frame18_scene5') and use:

_root.gotoAndPlay('frame18_scene5');