This tutorial works in flash 8+
Timeouts are very similar to Intervals and exist in corrosponding languages like JavaScript for just as long.
The main difference is that timeouts only trigger Once after the given ammount of time passes and never again. This is very importent and much needed, and although it can be surpassed with an interval clearning itself, it's much niftier.
First of all let's look at the setTimeout function :
id= setTimeout(functioname:Function, miliseconds:Number, params:Object);
the id is for clearTimeout which I don't know if exists since it's pointless.
The function is the function name to execute when the timeout ends
the miliseconds are the ammount of time the timeout will execute in, for example 2000 miliseconds are 2 seconds.
the params are additional params passed to the function
overall the function is very similar to setInterval and setTimeout in javascript
lets look at this example:
setTimeout(function () {
trace("timed out");
}, 2000);
this would trace "timed out" after 2 seconds, this can be used for all actions needed, and it's good when you want to avoid the frames per second limit.
Ask any questions here
I couldn't find any documentation found , if you did, please share