PDA

View Full Version : how to fire a global event which all Panels listen to?



sandeep45
31 Aug 2011, 7:03 AM
How could I fire an event which is listened to by all Panels?

In all my panels I have a listener for event "x". How can i fire the event on all panels.

One Solution I thought of is to loop through all the items of my viewport class and call fireEvent on them. But I would like to know a more elegant solution? Is there an event propagation which happens downwards, so i can fire the event on the parent container and all children panels can receive it?

Thanks