How to add event listeners in MXML components. Name the AS3 components? - Flash

How to add event listeners in MXML components. Name the AS3 components?



- The following are the event listeners for MXML components:

1. addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int 0, useWeakReference:Boolean = false) : void
// this method returns nothing as its return type is void

2. removeEventListener(type:String, listener:Function, useCapture:Boolean = false) : void

3. removeEventListener(type:String, listener:Function, useCapture:Boolean = false) : void

4. dispatchEvent(event:Event):Boolean

5. hasEventListener(type:String):Boolean

6. willTrigger(type:String):Boolean
Post your comment