Hi!
I have this code that I insert every item in a XML file into an array.
private function onXMLLoaded(event:Event):void
{
xmlPic = new XML(xmlLoader.data);
for (var i:uint = 0;i < 5;i++)
{
thumbs.push(xmlPic.pic*.@url);
}
loadThumbs();
}
I know that I have 5 items(I am just testing). If I change 5 for xmlPIC.length it wont show me anything. If I leave 5 on the for loop I have the results I want.
What is wrong?