1 Reply Latest reply on Dec 1, 2009 8:59 AM by rfrishbe

    Define an event in MXML?

    Handycam Level 1

      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)" />