Log
View Options
Timer Tools AS3
10/5/09

Lately I have have found myself wanting to store functions to be called at a specific time, at differing intervals, different functions, and all kinds of complicated timer events. I have standardized the way I use timers with a base class called TimeTools that has two different ways it expands on the basic usability of time based events. Any function or series of functions are easily set to fire at any given time.
The functions are fully dynamic, the times are fully dynamic, and you can add any parameters you want. The first method in this class is the delayCommand which stores a function, call time, and parameters to be applied. The second is the timedCommandStack which creates a TimedCommandStack object. A TimedCommandStack executes an array of commands in order in a set interval.
DOWNLOAD EXAMPLE PACKAGE