1 Reply Latest reply on Apr 17, 2011 10:46 PM by Flex harUI

    Event propagation to dynamically created object

    pk. Rzhevskij

      Hi guys.

      I have a question about event propagation.

      Let say I have an application, on application I have a panel, and on the panel I have a button. When button is clicked, new event is created and dispatched. Application and panel have an event listeners and both of them work perfect.

      Now I added anothethe button on the panel. This button creates a label and adds it to the panel. The label has an ivent listener. So, if I click the first button, both application and panel listeners work perfectly, but lalbel's listener does not work.

      How can I propagate an event to the dynamically created component.

       

      Thanks.