Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
override protected function initializeMacroCommand():void{ addSubCommand( command1 ); addSubCommand( command1 ); addSubCommand( command1 );}
override public function execute( note:INotification ): void {40 lines of code here that with subcommands they could all be broken into their own class.....}
private function makeAndRegisterStartupResource( proxyName:String, appResourceProxy:IStartupProxy ):StartupResourceProxy {var r:StartupResourceProxy = new StartupResourceProxy( proxyName, appResourceProxy ); facade.registerProxy( r );_monitor.addResource( r );return r;}
Does it help that you can, at any time, use the getResourceList() method of StartupMonitorProxy to get the IResourceList object that contains the StartupResourceProxy objects, and getResources() on that returns an array of the StartupResourceProxy objects?----Philip
I've used the SM with macro commands before, it works almost exactly the same (except you need to grab an instance of the SM in each command.Where are you having trouble? I usually have my first macro command set-up the initial SM and then each command add what it needs to it. Then the last macro starts the loading process.
I need to take another look at the class to see how I can push elements that are being added through the "AddSubCommand" method.