Hello, I want to use my xml file to load swfs into my app. But I was wondering what the sequence of events are? First I tried:
_queue= new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler});
_queue.append( new XMLLoader("shared/courseData.xml", {name:"courseData",noCache:true}));
Then I decided that I needed to be notified when the xml was loaded without waiting for the whole queue to load. So I changed the above and added an explicit event listener for the data.xml. They are: onComplete:xmlCompleteHandler, onFail: xmlFailHandler.
_queue= new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler});
_queue.append( new XMLLoader("shared/data.xml", {name:"courseData",noCache:true, [b]onComplete:xmlCompleteHandler, onFail: xmlFailHandler[/b]}));
_queue.load();
Is there a better way to go about this? My goal is to use the very nice feature of LoaderMax which allows me to pull "SWFLoaders" out of my xml doc. For our app's needs we have to have the xml loaded first. If I trace the above out I see that the xmlCompleteHandler fires before the completeHandler. (In the authoring environment). Can I count on that? Is there a better way to do this without having to make 2 separate xml docs? (One for loading swfs and one for the other data the application needs).
Thanks.