Skip to content

Instantly share code, notes, and snippets.

@timohausmann
Created April 23, 2013 10:33
Show Gist options
  • Save timohausmann/5442510 to your computer and use it in GitHub Desktop.
Save timohausmann/5442510 to your computer and use it in GitHub Desktop.
Flash AS2: Wait
var interval;
var displayTime = 4000;
function wait( delay ) {
stop();
interval = setInterval(waitContinue, delay);
}
function waitContinue() {
play();
clearInterval(interval);
}
wait( displayTime );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment