2014年3月11日

dispatchEvent发送事件

摘要: 能够有意识的发送事件,就是dispatchEvent。//创建Sprite实例var evtSpr:Sprite = new Sprite();//事件注册evtSpr.addEventListener(Event.COMPLETE, compHandler);evtSpr.addEventListener(MouseEvent.CLICK, clickHandler);//事件有关的方法function compHandler(evt:Event):void { trace("complete!!");}function clickHandler(evt:MouseEve 阅读全文

posted @ 2014-03-11 13:11 curry99 阅读(189) 评论(0) 推荐(0) 编辑

导航