View Full Version : using buttons
biderman
02-02-2006, 03:35 AM
Hi. Please advise the code to make a program wait until one of a series of buttons is pressed and then tell which one was pressed.
Thanks in advance.
reyco1
02-02-2006, 03:47 AM
on the frame you want the movie to stop:
var whoIsPressed:String
stop();
button1.onPress = function(){
//do something
whoIsPressed = "button1"
}
button2.onPress = function(){
//do something
whoIsPressed = "button2"
}
//and so on...
biderman
02-02-2006, 05:18 PM
Thanks
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.