Creating Drop-Down Menus

I was just looking at the tutorial “Creating Drop-Down Menus” (http://www.kirupa.com/developer/mx/dropdownmenu.htm).
I was trying to add links to each of the buttons. Each button is supposed to go to a separte scene, but its not working. Help me please!

does your code look anything like this for the button?

[AS]on (press) {
gotoAndPlay(“Scene #”, 1);
}[/AS]

i had onRelease before

I put in “on press”, but it still doesn’t work

after i put in “on press”, whenever I try to click on a link, the submenu dissapears

heres the file if you want to take a look at it

should be onPress

still doesn’t work

can someone post a file where the links actually work?

Scenes are very difficult to handle in my opinion… use gotoAndPlay(frame). Much easier. Heres an example if you need.

oh wow, thanks a lot, that really helped; apprieciate it! :slight_smile:

You’re welcome :slight_smile:
In case you didnt check the code, b1 leads to frame 5, b2 leads to frame 10, b3 to frame 15, and so on…

Yay, hehe i finally finished my menu. Thanks again claudio!

Here’s the final result:

I put in the code:

for (j=1; j<=7; j++) {
this[“b”+j].sub = j;
this[“b”+j].onPress = function() {
_root.gotoAndStop(this.sub*8); //b1 leads to frame 5, b2=10, b3=15…
};
}

it worked fine and all. However, on put my menu on Scene 7, and whenever i click on a button from the menu, it takes me back to Scene 1. How do I make it so it only goes to Scene 7?

is there any way to do this?