I'm using this function to get the MP3Loaders from within the xml
xmlLoader = new LoaderMax({name:"aName", autoDispose :true, onComplete:propsLoaded});
xmlLoader.append(new XMLLoader(loaderPath, {name:"anotherName" , autoDispose :true, estimatedBytes:841 }));
xmlLoader.load();
private function propsLoaded(e:LoaderEvent):void {
var curPageLoader:LoaderMax = xmlLoader.getLoader("loaderrr"); //get the pages LoaderMax stored within the xml
//curPageLoader is NOT null, but it contains NO loaders inside - it should containt 2 MP3Loaders according to my xml
}
<?xml version="1.0" encoding="utf-8"?>
<tale id="1">
<page id="1">
<taleText>Lorem ipsum bla bla bla.</taleText>
<LoaderMax name="loaderrr">
<MP3Loader name="sth1" url="page_1/backsound.mp3" estimatedBytes="2050" autoPlay="false" />
<MP3Loader name="sth2" url="page_1/backsound.mp3" estimatedBytes="2050" autoPlay="false" />
</LoaderMax>
</page>
</tale>
but the LoaderMax object that is returned to me has NO loaders inside. Its empty.. Why is that?