Event.ENTER_FRAME versus setInterval method

Professeur Pirson Nicolas Pirson :
Go to my website : tatactic.be [FR] (Website about hepatitis)
nicolas.pirson.me [FR - EN] (current website)
business card - blog [FR - EN] (just for fun)
Nicolas Pirson CV page [FR] on tatactic.be
Back to AS3 - FLASH index ... [EN]

When using setInterval, you can specify a different framerate for each clip...
Goal : evrery clip don't need a high framerate. So, you don't need to use the CPU in the same way for each Sprite or MovieClip... Back To index...

Using setInterval and updateAfterEvent vs. Event.ENTER_FRAME.

Here, you can test different values of framerates (fps) for the animation of the square instance...
With a low fps, you can increase the value of the multiplicator coeficient to maintain an a relative smoothfor the motion tween.
Click on the "Start move" button to test... (published in flash player 10.1 and AS3).

The framerate on the MAIN swf is 1 fps !!! Back To index...

XHTML 1.0 STRICT. Compatible W3C     CSS 2.0  Compatible W3C