Creating Custom Events

You can create custom events as part of defining MXML and ActionScript components. Custom events let you add functionality to your custom components to respond to user interactions, to trigger actions by your custom component, and to take advantage of data binding. This topic presents an overview of how to dispatch custom events from your MXML and ActionScript components, and how to create Event classes by creating a subclass of the Event class.

The basic concepts of creating custom events are described here, however, subsequent topics describe this process in more detail for MXML and ActionScript components. For more information on creating custom events for MXML components, see Creating Advanced MXML Components. For information on creating them for ActionScript components, see Creating Simple Visual Components in ActionScript.

Contents

About events
Dispatching custom events

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/00001640.html