摘要:
cameraBtn.addEventListener(MouseEvent.CLICK,cameraClickHandler);protected function cameraClickHandler(event:MouseEvent):void { // TODO Auto-generated method stub //先绘制当前图行到一个bigmapdata对象 var bmpData:BitmapData = new BitmapData(GameModel.getInstance().screenWidth,GameModel.getInstance().screenHeig... 阅读全文
摘要:
一个主项目调用被加载的小游戏SWF项目的方法,并传参数给小游戏项目,注意:被调用的方法是接口,写成public就好主项目代码:private var loader:Loader; public function SwfMethodTest1() { loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onLoadComplete); loader.load(new URLRequest("SuperMemory.swf")); } protected function 阅读全文