Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
public function result( rpcEvent : Object ) : void{ // call the StartupMonitorProxy to notify that the resource is loaded sendLoadedNotification( ApplicationFacade.ASSETLIST_LOADED, NAME, SRNAME); //parse the xml down to an array of swfs to load mData = XmlResource.parse(data, rpcEvent.result); //tosses error on reference to 'app' sendNotification( ApplicationFacade.LOADASSETS, app ); }
public function AssetProxy( swf2Load:String ):void { NAME = swf2Load + "Proxy"; SRNAME = swf2Load + "SRProxy"; this.swf2Load = swf2Load; super( NAME ); this.load();}
public function load() :void { var delegate : LoadAssetDelegate = new LoadAssetDelegate(this, 'assets/' + swf2Load + '.swf', tempClipHolder ); delegate.load(); sendNotification( ApplicationFacade.ASSET_LOADING, swf2Load ); this.monitor = facade.retrieveProxy( StartupMonitorProxy.NAME ) as StartupMonitorProxy;// This var definition should probably be created with a dynamic name - How? var rAsset :StartupResourceProxy = makeAndRegisterStartupResource( SRNAME , this.NAME as IStartupProxy); }
public function add2ClipHolder( assetClip: MovieClip):void{ clipHolder.addItem(assetClip);}public function ClipHolder():ArrayCollection{ return clipHolder;}
Users should not look to the utility to provide graphic 'pre-loader' status type display.
2. In constructor to AssetProxy, why not pass in an asset counter, for example the i subscript of MData, and use it to make the NAME and SRNAME unique? As you say, for the utility, the IStartupProxy NAME must be unique.----Philip
.... NAME and SRNAME are already made unique by prepending the name