
TUTORIALS POINT
Simply Easy Learning Page 50
EventDispatcher(target:IEventDispatcher = null)
Aggregates an instance of the EventDispatcher class.
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0,
useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification
of an event.
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors
for the specified event type.
Events
Following are the events for flash.events.EventDispatcher class:
activate
Dispatched when the Flash Player gains operating system focus and becomes active.
detivate
Dispatched when the Flash Player loses operating system focus and becomes inactive.
Methods inherited
This class inherits methods from the following class:
Object
UIComponent Class
Introduction
The UIComponent class is the base class for all visual components, both interactive and noninteractive.
Comentários a estes Manuais