Game engine based on cocos2d and Flash