| Creating and Extending Flex 2 Components > Creating Custom Flex Components > Creating Custom Events > Dispatching custom events | |||
Flex defines many of the most common events, such as the click event for the Button control, however, your application may require that you create events. In your custom Flex components, you can dispatch any of the predefined events inherited by the component from its superclass, and dispatch new events that you define within the component.
To dispatch a new event from your custom component, you must do the following:
[Event] metadata tag to make the event public so that the MXML compiler recognizes it. For more information, see Using the Event metadata tag.dispatchEvent() method. For more information, see Dispatching an event. Flex 2
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/2/docs/00001643.html