Question
How to wait for user input?
Is there a way in as3 to pause the execution and wait for user input (click on yes or no for example)? I am looking for something like this,
var user_input:Boolean=wait_for_user_input();
//program pauses here until user click on yes or no
if (user_input) {
trace("you chose yes");
}
else {
trace("you chose no");
}
Thanks.
