1 Reply Latest reply on Sep 24, 2009 2:42 AM by Yogi_ACE

    listening to event from custom component

    wolfman33

      I have a main.mxml file, and 2 custom components: component1.mxml and component2.mxml

       

      I want to dispatch an event from component1 and handle it in component 2.

       

      I'm able to do this by handling the event first in the main.mxml then passing it on.

       

      But is there a way not to involve main.mxml, and to directly listen to the event from component 1 and handle it in component 2?

       

      I need to listen the event in actionscript, not mxml.