Search code examples
apache-flexactionscripteventsglobalevent

How to create a 'global event' in actionscript / flex?


What is the best way to create a 'global event' in flex/actionscript - preferably using a static class?

I want to raise an event to indicate that a stylesheet is loaded in order to show components that require that stylesheet. So I want each portion of the application that requires a style from the stylesheet to listen to an event telling it that the styles are all loaded.


Solution

  • Use robotlegs, simple and Singleton free!