mx.events.EventDispatcher
base class for event listening and dispatching
static _fEventDispatcher:EventDispatcherstatic exceptions:Objectstatic function initialize(object:Object):Voidadd listening and dispatching methods to an object
- Parameters
objectthe object to receive the methods
function dispatchEvent(eventObj:Object):Voiddispatch the event to all listeners
- Parameters
eventObjan Event or one of its subclasses describing the event
function addEventListener(event:String, handler):Voidadd a listener for a particular event
- Parameters
eventthe name of the event ("click", "change", etc)
function removeEventListener(event:String, handler):Voidremove a listener for a particular event
- Parameters
eventthe name of the event ("click", "change", etc)