6 Replies Latest reply on Jul 7, 2008 8:50 PM by *gsb*

    Custom AS3 Component / Event Definition for MXML Tag

    *gsb*

      Custom AS3 Component / Event Definition for MXML Tag
      Exposing custom event in custom MXML tag.



      I have made an AS3 custom component named, 'CustomListComponent'.
      Is a list type component extending UIComponent.

      When an item is clicked (selected) I generate a custom event named, 'selChange'

      I want the user to be able to use this tag, define a handler on the MXML tag.
      I tried using metadata like [Event("selChange")] in the component AS3 file with no luck.

      Any help / examples to expose a custom event from an AS3 custom component to the MXML tag for the end user/developer would help significantly.

      Anyone? Thank you.