Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > 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. |
The following table lists the method of the UIEventDispatcher class.
|
Method |
Description |
|---|---|
|
Removes a registered listener from a component instance. This method overrides the |
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 |
|---|---|
|
Registers a listener to a component instance. |
|
|
Dispatches an event to all registered listeners. |
The following table lists events of the UIEventDispatcher class.
|
Method |
Description |
|---|---|
|
Broadcast when a key is pressed. |
|
|
Broadcast when a pressed key is released. |
|
|
Broadcast when a component loads into Flash Player. |
|
|
Broadcast when the mouse is pressed. |
|
|
Broadcast when the mouse is moved off a component instance. |
|
|
Broadcast when the mouse is moved over a component instance. |
|
|
Broadcast when the mouse is pressed and released. |
|
|
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