MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 417

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Parameters
eventObject
is a string indicating the name of the event. Generally, the event object also has a
that is the name of the instance broadcasting the event. You can define other properties on the
event object that will help a user capture information about the event when it is dispatched.
Returns
Nothing.
Description
Method; dispatches an event to any listener registered with an instance of the class. This method
is usually called from within a component's class file. For example, the SimpleButton.as class file
dispatches the
click
Example
The following example dispatches a
dispatchEvent({type:"click"});
EventDispatcher.removeEventListener()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004 and Flash MX Professional 2004.
Usage
componentInstance.removeEventListener(event, listener)
Parameters
A string that is the name of the event.
event
A reference to a listener object or function.
listener
Returns
Nothing.
Description
Method; unregisters a listener object from a component instance that is broadcasting an event.
418
Chapter 6: Components Dictionary
A reference to an event object. The event object must have a
event.
click
event:
property that
type
property
target

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents