[FLASH_AS]Flash as3 addEventListener事件监听传递参数

var event_param:String = "Hello;

对象元件.addEventListener(MouseEvent.CLICK,function (e:MouseEvent){showMessage(e,event_param)});

function clickHandlerWithArg(e:MouseEvent,arg:String):void{

trace(arg);

} 

你可能感兴趣的:(listener)