This is essentially what is happening to me:
var _queue:LoaderMax = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler});
_queue.append( new XMLLoader("test.xml", {name:"test",noCache:true, estimatedBytes:"22000", onComplete:xmlCompleteHandler, onFail: xmlFailHandler}));
_queue.load();
var currentSwfLoader:LoaderCore = _queue.getLoader(String(path)); //path is the url for the SWFLoader
if (currentSwfLoader) {
var index:uint = _queue.getChildIndex(LoaderCore(currentSwfLoader));
trace(index); //it is 999999999
var nextSwfLoader:SWFLoader = _queue[index];
}
So the trace returns 999999999. Clearly the LoaderCore object isn't being found in the LoaderMax object even though I pull it directly from the LoaderMax object and determine that it exists (I have also traced it out).
I need to get the SWFLoaders immediately following currentSwfLoader and so I am trying to get the index and then bump it up to get the next few. Will that work? Is there a better way? There seems to be no way to get a LoaderCore based on an index Either way getChildIndex isn't seeming to work.
Thanks for your help!