User Guide

802 Chapter 6: Components Dictionary
UIEventDispatcher class
ActionScript Class Name mx.events.UIEventDispatcher
Inheritance EventDispatcher class > UIEventDispatcher
The UIEventDispatcher class is mixed in to the UIComponent class and allows components to
emit certain events.
If you want an object that doesnt inherit from UIComponent to dispatch certain events, you can
use UIEventDispatcher.
Method summary for the UIEventDispatcher class
The following table lists the method of the UIEventDispatcher class.
Methods inherited from the EventDispatcher class
The following table lists the methods the UIEventDispatcher class inherits from the
EventDispatcher class. When calling these methods from the UIEventDispatcher object, use the
form
UIEventDispatcherInstance.methodName.
Event summary for the UIEventDispatcher class
The following table lists events of the UIEventDispatcher class.
Method Description
UIEventDispatcher.removeEventListener() Removes a registered listener from a component
instance. This method overrides the
eventDispatcher.removeEventListenter() method.
Method Description
EventDispatcher.addEventListener() Registers a listener to a component instance.
EventDispatcher.dispatchEvent() Dispatches an event to all registered listeners.
Method Description
UIEventDispatcher.keyDown Broadcast when a key is pressed.
UIEventDispatcher.keyUp Broadcast when a pressed key is released.
UIEventDispatcher.load Broadcast when a component loads into Flash Player.
UIEventDispatcher.mouseDown Broadcast when the mouse is pressed.
UIEventDispatcher.mouseOut Broadcast when the mouse is moved off a component
instance.
UIEventDispatcher.mouseOver Broadcast when the mouse is moved over a component
instance.
UIEventDispatcher.mouseUp Broadcast when the mouse is pressed and released.
UIEventDispatcher.unload Broadcast when a component is unloaded from Flash
Player.
CHAPTER 6
Components Dictionary