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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Levels with Buttons 1

Status
Not open for further replies.

tyleri

Programmer
Jan 2, 2001
173
US
If I have a movie that contains buttons, how do I point the button action in the "goto frame 10" to the correct level or movie? When i click on the buttons, it sends you to the current movie frame 10. I want it to move up to a higher level movie that this movie is contained in

 
Let me clarify myself.

I have a set of buttons in a sub-menu section. My hierarchy is:

Scene 1 --> Menu_Movie --> Sub_Menu_Movie

I have buttons for the submenu in the sub_menu_movie.

What I want to happen is for the buttons in the sub_Menu_movie go to a frame in the Menu_Movie.

How do I do this?
 
any parth can be given relitive to _root witch is alway (unless your loading swf files) your main movie. so, in this case in order to tell Menu_Movie to go to frame 10 you would put:

_root.Menu_Movie.goToAndPlay(10)

understand? there id a great tutorial about paths at i think its like the second or third one down the list. not knowing is an excuse for those umwilling to lern -- John Rueben
 
Or rater than giving the whole route from _root, as you that it is the container movie-clip you want to control you can use the following:

_parent.gotoandplay(10)

And in the same way, if you had a button in Menu_movie which you were using to control the Sub_Menu_movie you could utilise:

_child.gotoandplay(whatever)

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Sorry about typos:

Or rather than giving the whole route from _root, as you know that it is the container movie-clip you want to control you can use the following:

_parent.gotoandplay(10);

And in the same way, if you had a button in Menu_movie which you were using to control the Sub_Menu_movie you could utilise:

_child.gotoandplay(whatever);

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top