View comments | RSS feed

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.

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.


Version 8

Comments


scoobeeDogg said on Sep 26, 2006 at 10:00 AM :
Do not extend this class by setting the linkage in a library movieclip. Doing so breaks the use of some other components such as the Alert class. In my case, it caused the entire application to freeze up. To remedy this, I had my clip extend the mx.core.UIObject class instead.

 

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

Current page: http://livedocs.adobe.com/flash/8/main/00004178.html