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!

making buttons link from scene to scene

Status
Not open for further replies.

webfodder

Technical User
Jan 2, 2002
3
US
I created buttons. I put them in a graphic that is to be used as the main menu. I put the main menu graphic (with the buttons) in all of the scenes of my flash file. But, I can't figure out how to assign actions to the buttons to make them link to the different scenes in the file. How do you do this?
 
Don't understand what you're saying exactly with your "I put them in a graphic that is to be used as the main menu"...

Have you tried a righ-click on your buttons, selecting Actions from the popup menu which will open the Object Actions window where you can assign on actions to your buttons such as:

on (press) {
gotoAndPlay ("Scene 2", 1);
}

Depending on the manipulations you've done (if your buttons are within a movie clip and maybe even from within a graphic symbol) you may need to alter your button's coding in this matter.
You should label (select the first frame of Scene 2, and name it in the Frame panel -> start2 for example) the first frame of the targeted scene and use the following:

on (press) {
_root.gotoAndPlay ("start2");
}

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top