delay with setTimeOut

/ Published in: ActionScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. function funcToCall( argument:String):Void
  2. {
  3. trace(argument);
  4. }
  6. // setTimeout( Function, delay in miliseconds, arguments)
  7. setTimeout( funcToCall, 1000, "Time Out")

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.