I'd like to define an event in an MXML component, so that I can access and assign it via MXML in the component's instance tag.
Let's say my component is based on group, and there's a button in this group "save". I have a handler for this in the main application. I know how to do this via actionscript, but would prefer to be able to define the handler like:
<com:MyComponent id="savepanel" customSaveEvent="saveHandler(event)" />
It is done through extra event metadata on the custom component so that the MXML compiler knows that it's a valid event for that particular object. See: http://livedocs.adobe.com/flex/3/html/help.html?content=mxmlcomponents_advanced_4.html and http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_2.html .