Flambe is a fast, expressive, and cross-platform engine for Flash and HTML5 games.
See the installation guide.
The source code for these samples and others are available in the demo repository.
Flambe does a few things very well:
...and more! See the issues page to get a feel for Flambe's roadmap and report bugs.