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 doesn't inherit from UIComponent to dispatch certain events, you can use UIEventDispatcher.

NOTE

 

The UIEventDispatcher class is supported only if you are working in a document that specifies ActionScript 2.0 in its Publish Settings.

Method summary for the UIEventDispatcher class

The following table lists the method of the UIEventDispatcher class.

Method

Description

UIEventDispatcher.removeEventListener()

Removes a registered listener from a component instance. This method overrides the eventDispatcher.removeEventListenter() method.

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.

Method

Description

EventDispatcher.addEventListener()

Registers a listener to a component instance.

EventDispatcher.dispatchEvent()

Dispatches an event to all registered listeners.

Event summary for the UIEventDispatcher class

The following table lists events of the UIEventDispatcher class.

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.


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00003641.html