Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down button help

Status
Not open for further replies.

lamborn

Programmer
Aug 2, 2004
2
US
Hello, I am trying to create a drop down menu in flash MX that will give users the option of swithing to a different scene within the same movie.
Using this tutorial as a base
I have built a menu, and the drop down effect works just fine.
Also using the actionscript for buttons in the menu to direct the user to a new URL works great. But when I try to attach an action script to a button to make it go to a new scene within the movie, nothing... nada...el zippo.

So is it possible to do sucha a thing?

the script attached to the button looks like this

on (press) {
gotoAndPlay("stroke ps", "1");
}
 
From movie clips or loaded external movies on other levels, never target scene names but a labeled frame, and add the targeted timeline to your paths...
Thus label the targeted frame in the targeted scene with an unique label such as my_target1 (no number only labels, or at least not starting off with a number, no caps and no special character other than the underscore...), add _root or _level0 to your path, and target the labeled frame on your button's or frame's actionscripts...
Code:
on(release){
    _root.gotoAndplay("[b]my_target1[/b]");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top