Actionscript Timer is more of a guideline really…
by paul on February 27, 2009
I use a fair amount of Timers in my Flash/Flex code – they are just so darn handy. So imagine my surprise when I read this post that states and shows that Timer tick at an interval based on the swfs framerate which is variable depending on the persons machine. Arg! That explains so much and helps me with a nasty bug I was dealing with months ago. Needless to say, I fired up wordpress and got ready to lay the smack down on Adobe for the .000453% of folks that actually read the stuff I throw up here. I mean come on – how dare I be inconvienced in such an inconcievable way – I don’t have time for all of this – let me look at the livedocs, I’m sure there is no mention of this…this…injustice…this calamity…this outright assault on my productivity…this…this…
You can create Timer objects to run once or repeat at specified intervals to execute code on a schedule. Depending on the SWF file’s framerate or Flash Player’s environment (available memory and other factors), Flash Player or Adobe AIR may dispatch events at slightly offset intervals. For example, if a SWF file is set to play at 10 frames per second (fps), which is 100 millisecond intervals, but your timer is set to fire an event at 80 milliseconds, the event will be dispatched close to the 100 millisecond interval. Memory-intensive scripts may also offset the events.
oh snapz!

Leave your comment