flash delay

Since I'm a newbie on flash, I have a problem in delaying the action when a button is pressed. If you could hint me in the right direction, I'd greatly appreciate it!

This is what I've tried (as a button action) - with no delay happening:

on (release) {

APause = setInterval(GoBack, 2300);
//calls a function called GoBack every 2.3 seconds//
function GoBack() {
clearInterval(APause);
//removes the APause, now it won't happening again//
//whatever delayed action you want//
}
//so this is what I want executed, but after a short delay:
gotoAndStop("Scene 1", 2)

}
Sign In or Register to comment.