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