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!

Goto scene from "combination lock"

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have some buttons, on each button is assigned a number value that, when pressed, will add that number to a dynamic text box called "display".when a certain number in the display is reached, i want it to goto a scene specific to that combination of buttons and numbers. i action scriped one of the buttons, the last one to be pressed, to this:

on (release)
if (display == 160010000)
gotoAndPlay("Scene 2", 1)
}

where "Scene 2" is the name of the scene and 160010000 is the value inputed, but it wont goto the scene, does anyone have some useful tips in making this happen? thanx in advance

 
In this test, on the second press of the button, it goes to Scene 2:

on (press) {
display += 50000;
if (display == 100000) {
gotoAndPlay ("Scene 2", 1);
}
}

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

Part and Inventory Search

Sponsor

Back
Top