본문 바로가기

컴터/Flash & Flex

이벤트리스너에 인자값 넣기

http://cafe.naver.com/ArticleRead.nhn?clubid=10833316&page=1&searchtype=1&query=addEventListener 인자&searchdate=all&articlemedia=0&sortby=date&articleid=9730

btn.addEventListener(MouseEvent.CLICK, fnc);

--------------->

btn.addEventListener(MouseEvent.CLICK, function():void{fnc(1,'ab');});


exitCommand.addEventListener(Event.SELECT,
     function(event:Event):void {
      NativeApplication.nativeApplication.icon.bitmaps = [];
      NativeApplication.nativeApplication.exit();
     }
    );