An AS3 game engine