FlashJS is a HTML5 game engine that comes with an API similar to Flash one. It allows you to develop applications in the way that is similar to ordinary AS3 development. Designed to show maximum performance for HTML/CSS platforms, FlashJS is very easy to use. You just need to write ActionScript3 inside a “actionscript” tag. This HTML5 game engine was tested and supports major modern browsers like Chrome, Safari, Internet Explorer (9+) and Firefox (4+)
FlashJS also comes with complete example games with their code and syntax. Main features include: scaleX and scaleY properties, displayObject with alpha, rotation x/y, keyboard and mouse events, loader, stage and its onEnterFrame event and more.
HTML5 game engine example