addEventListener中的函数传递参数的方法!

 

 

fl_btn_per.addEventListener(MouseEvent.MOUSE_OUT,onOut(fl_btn_per)); private function onOut(target:MovieClip):Function { var func = function(e:MouseEvent):void { target.gotoAndStop(1); e.stopPropagation(); } return func; }

你可能感兴趣的:(function)