1

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.

Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689

2 Answers2

1

Use robotlegs, simple and Singleton free!

tit
  • 599
  • 3
  • 6
  • 25
1

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

grapefrukt
  • 27,016
  • 6
  • 49
  • 73