Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript's version of ActionScript's Event.ENTER_FRAME event?

I am trying to learn JavaScript and I am wondering whether JavaScript has a event listener just like ActionScript's ENTER_FRAME. Basically, I want this event listener to listen "all the time" not just wait for any particular instance (mouse click, keyboard event) of event.

like image 354
denniss Avatar asked Nov 28 '22 10:11

denniss


1 Answers

This would probably be worth a look too : http://paulirish.com/2011/requestanimationframe-for-smart-animating/

like image 200
just_a_dude Avatar answered Dec 09 '22 10:12

just_a_dude