Regarding your suggestion...
"Do this in your StartupCommand:
var configProxy:MyAppConfigProxy = new MyAppConfigProxy();
facade.registerProxy( configProxy );
configProxy.fetchConfig();
Register a command for ConfigProxy.SUCCESS which continues with the loading of the modules (the locations of which you'll probably define in this configuration file)."
...I was wondering what the best way to handle the fact that the command registered for ConfigProxy.SUCCESS does NOT have a reference to the mx:Application in the notification body (as the StartupCommand DOES).
I need this reference to the mx:Application to register my Mediators.
Currently I am simply keeping a track of it in the Facade...
var wFacade:ApplicationFacade = facade as ApplicationFacade;
wFacade.app = note.getBody() as QuestWaver;
var configProxy:WaverConfigProxy = new WaverConfigProxy("config/waver-config.xml");
facade.registerProxy(configProxy);
configProxy.retrieveConfig();
...and then retrieving it in the ViewPrepCommand.
Is there a better (more correct) way to do this?
Thanks,
Niel.