Flixel is a free ActionScript (Flash) library that Adam “Atomic” Saltsman distilled from a variety of Flash games he worked on over the last couple years, including Gravity Hook, Fathom and Canabalt.  It's primary function is to provide some useful base classes that you can extend to make your own game objects.