PDA

View Full Version : Error accessing images from XML



Rundevo
October 2nd, 2008, 10:39 AM
for (var n:int = 0; n < images.length(); n++)
{
if (images[n].attribute("source") == event.target.name)
{
var thumbList = images.@source[n].parent().parent().image.@thumb;

thumbLoader = new Loader();
thumbLoader.load(new URLRequest(thumbList));
thumbLoader.contentLoaderInfo.addEventListener(Eve nt.COMPLETE, thumbHandler);
function thumbHandler(event:Event):void
{
addChild(thumbLoader);
}
}
}

I get all the URL.s of the images I want to load, but it also throws me these errors!

Error opening URL
Then all the URLs of the images
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.

This dynamic XML gallery is driving me crazy!

Anyone with good knowledge in building these and care to help out?
IŽll pay if needs be! :)

Another thing, does anyone know any good tutorials, documention or even books that cover everything about e4x?

/rundevo