Class List

Class EventDispatcher

The EventDispatcher class is the base class for all classes that dispatch events. It is the base class for the DisplayObject class.

Class Summary
Constructor Attributes Constructor Name and Description
 
Constructor.
Method Summary
Method Attributes Method Name and Description
 
addEventListener(type, listener)
Registers an event listener with an EventDispatcher object so that the listener receives notification of an event.
 
Dispatches an event to its registered listeners.
 
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
 
Removes all listeners from the EventDispatcher object.
 
removeEventListener(type, listener)
Removes a listener from the EventDispatcher object.
 
Removes a listener with specific event type from the EventDispatcher object.
Class Detail
EventDispatcher()
Constructor.
Method Detail
addEventListener(type, listener)
Registers an event listener with an EventDispatcher object so that the listener receives notification of an event.
Parameters:
type
listener

dispatchEvent(event)
Dispatches an event to its registered listeners.
Parameters:
event

hasEventListener(type)
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
Parameters:
type

removeAllEventListeners()
Removes all listeners from the EventDispatcher object.

removeEventListener(type, listener)
Removes a listener from the EventDispatcher object.
Parameters:
type
listener

removeEventListenerByType(type)
Removes a listener with specific event type from the EventDispatcher object.
Parameters:
type

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 25 2011 15:02:39 GMT+0800 (CST)