Posted By

imhugo on 03/19/08


Tagged

actionscript delay setTimeout


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dada78


delay with setTimeOut


 / Published in: ActionScript
 

  1. function funcToCall( argument:String):Void
  2. {
  3. trace(argument);
  4. }
  5.  
  6. // setTimeout( Function, delay in miliseconds, arguments)
  7. setTimeout( funcToCall, 1000, "Time Out")

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: dada78 on April 3, 2010

Runs a specified function after a specified delay (in milliseconds). The setTimeout() function is similar to the setInterval() function, except that setTimeout() calls the function once and then is automatically deleted.

You need to login to post a comment.