I would like to create a component in Flex which will always listen to a Cutom Event.
Say, I create an event named "MyEvent" in Flex. I associate this event toa custom component, say MyComponent (extends Button). When ever this even is triggered , I should have a set of Components listening and tracking this event using an event listener in their definition.This should be in a framework level. That is, even if we add more components in our application, they should be able to listen to the Custom Event.
Or in short, is it possible to make all the components in an application listen to a custom event triggered?
If MyComponent has a singleton shared event dispatcher, all instances can
listen to it.
Thanks for your answer.Can u please give an example so that I can understand it.Excuse me,I am a beginner in flex.