How do I create a global event in actionscript / flex?

What's 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 to display the components that require this stylesheet. So I want every part of the application to require a style from the stylesheet in order to listen for an event telling it that all styles are loaded.

+1


source to share


2 answers


Use robotlegs , simple and Singleton free !



+1


source


Make a Singleton and add listeners to it, nice and simple.



+1


source







All Articles