Hello,
I have this code that loads thumbs and full images in my project:
private function processXMLHandle(e:Event):void
{
var xml:XML = new XML(e.target.data);
for each (var line:XML in xml.IMAGE)
{
var file:String = line.@THUMB;
var loader:Loader = new Loader();
loader.load(new URLRequest(file));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
var fileFull:String = line.@FULL;
var loaderFull:Loader = new Loader();
loaderFull.load(new URLRequest(fileFull));
loaderFull.contentLoaderInfo.addEventListener (Event.COMPLETE, completeFullHandler);
}
myXMLLoader.removeEventListener(Event.COMPLETE, processXMLHandle);
}
When I push the array I'v created for that, the images comes in an unsorted order.
I friend of my told me that It's happening something like that: "the small files are comming first". He told me that the problem is with the loader, but he can't help-me.
Can anyone tell-me what's wrong?
Thanks!