Hi there, i can't download more then one image from url
function processXML(e:ResultEvent):void
{
myXML = e.result as XML;
for (var i:Number=0;i<myXML.icon.length();i++)//amout of urls.Now there tree elements
{
loader.load( new URLRequest(myXML.image[i].imageURL.toString())); //get url
}
}
there is event.COMPLETE function
private function handleLoadComplete( e:Event ):void
{
var bmp:Bitmap = ( e.target as LoaderInfo ).content as Bitmap;
imgColl.addItem(bmp); //sore elements
Alert.show("load complete");//scheck for loadin
img.source = imgColl.getItemAt(1) as Bitmap; // ERROR Store only one element
MXML file
<mx:Image id="img" width="20" height="20"/>
What i'm doing wrong?