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.
For more information on creating custom events for MXML components, see Advanced MXML Components. For information on creating custom events for ActionScript components, see Simple Visual Components in ActionScript.