I have a number of resource modules that I'd like to load before loading my main UI module.
I'm doing this now, but to make sure that everything loaded OK, I need to have a chain of Event.COMPLETE callbacks for every resource module load.
In other (threaded) languages, I'd set a flag and run a wait on my main loop before loading the UI module.
Is there a good compact way to wait for n modules to load in Flex?
I don't think you need a chain if load order doesn't matter. Just keep a
Dictionary of them and remove them from the Dictionary as they load. Then
run a quick test of the Dictionary has any items left.