Timer vs setTimeout

Posted by Christophe Herreman on Stack Overflow See other posts from Stack Overflow or by Christophe Herreman
Published on 2010-04-21T13:41:35Z Indexed on 2010/04/21 13:43 UTC
Read the original article Hit count: 219

Filed under:
|

The docs for flash.utils.setTimeout() state:

Instead of using this method, consider creating a Timer object, with the specified interval, using 1 as the repeatCount parameter (which sets the timer to run only once).

Does anyone know if there is a (significant) advantage in doing so? Using setTimeout is a lot easier when you only need to delay 1 call.

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flex