Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
/*** Flag that is set to true when the final dependency is loaded*/protected var _dependenciesLoaded : Boolean;/*** Flag that indicates whether or not we are 'waiting' for our dependencies to load*/protected var _dependenciesPending : Boolean;/*** Override initialized and stall the application until * all dependencies are loaded*/override public function set initialized(value : Boolean) : void{ handleDependencies();}/*** Handles dependencies before starting up the application*/protected function handleDependencies(){ if (!_dependenciesPending) { facade.startup(this); // Allow PureMVC to start so you gain access to your proxies // Code to load all dependencies goes here _dependenciesPending = true; } if (_dependenciesLoaded) super.initialized = value; // We have loaded all dependencies, allow the app to start else callLater(handleDependencies); // Check again on the next frame}