Best Tutorials website


onEnterFrame vs setInterval

onEnterFrame vs setInterval

onEnterFrame is a popular method to have code run at certain intervals of time, but it has a drawback. onEnterFrame's time intervals are equal to the frame rate set in the document properties. If you want to run some code at different intervals of time, onEnterFrame won't be able to do the job. This is where setInterval is used.




Views: 598 | Rating star | by Sarah




View this tutorial
Broken link Report broken link?