Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > EventDispatcher class | |||
Events let your application know when the user has interacted with a component, and when important changes have occurred in the appearance or life cycle of a component--such as its creation, destruction, or resizing.
|
NOTE |
|
The EventDispatcher class is supported only if you are working in a document that specifies ActionScript 2.0 in its Publish Settings. |
The methods of the EventDispatcher class let you add and remove event listeners so that your code can react to events appropriately. For example, you use the EventDispatcher.addEventListener() method to register a listener with a component instance. The listener is invoked when a component's event is triggered.
If you want to write a custom object that emits events that aren't related to the user interface, EventDispatcher is smaller and faster to use as a mix-in for UIComponent than UIEventDispatcher.
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/00002934.html