flex 注册监听器时传值
实现代码是这样的:
//注册监听器 aa.addEventListener(MouseEvent.CLICK,radioClick(adidArry[i],parentadidArray[i],buttonLabelArray[i])); //监听到的实现方法 public function radioClick(adidin:int,parentadidin:int,buttonLabelin:String):Function{ return function(e:MouseEvent):void{ adid = adidin; parentadid = parentadidin; button.label = buttonLabelin; tASAttributeGroupValueService.selectAttrGroupValueByAdidAgdid(adid,agdid,parentavid); } }