摘要:
给自定义组件编写事件,可以分为3部分:1、自定义事件,events.LightEvent.as 1packageevents2{3importflash.events.Event;45publicclassLightEventextendsEvent6{7publicstaticconstLightClick:String="LightClick";89publicfunctionLightEvent(type:String,bubbles:Boolean=false,cancelable:Boolean=false)10{11super(type,bubbles,canc 阅读全文