Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Every component must explicitly declare the events it can dispatch. Components that are subclasses of other components can also dispatch any events that their superclasses have declared. In Flex, events are declared with metadata tags. This is done with the [Event] metadata, which is used to declare events publicly so that the MXML compiler can verify that the user did not simply make a typo. In MXML, an event declaration looks like this:
<fx:Metadata> [Event(name="userAccept" ,type="flash.events.Event")] </fx:Metadata>