Hi,
I can't get recursivePrependURLs to work for me. I have additional XMLLoaders in an xml file I'm loading. The main xml file is getting loaded but none of its children are, their URLs are not being updated.
var relativePath:String = "/";
LoaderMax.activate([xmlLoader]);
var queue:LoaderMax = new LoaderMax({name:"mainQueue", onComplete:loadFilesComplete});
var xmlLoader:XMLLoader = new XMLLoader("assets/xml/config.xml", newXMLLoaderVars().name("configXML").recursivePrependURLs(relativePath));
queue.append( xmlLoader );
queue.prependURLs(relativePath);
queue.load();
and here is my xml:
<config>
<settings stageWidth="800" stageHeight="600" />
<XMLLoader name="tips and hints XML" url="assets/xml/tips_and_hints.xml" load="true" estimatedBytes="10" />
<XMLLoader name="items" url="assets/xml/items.xml" load="true" estimatedBytes="10" />
<XMLLoader name="careers" url="assets/xml/careers.xml" load="true" estimatedBytes="10" />
<XMLLoader name="origin comic" url="assets/xml/origin-comic.xml" load="true" estimatedBytes="10" />
</config>
Am I doing something wrong?
Cheers