Use ActionScript 3.0 to create a game engine like Cocos2D