Need Help with dynamic loaded images?

a want to make a site depending on what an xml wants.
(reading in the website from an xml)
the problem is when i load an image the last image is only visible.
i think it depends on it have the same name. but i cant have static names because i dont know how many pictures i want to load.

here is the code btw? please help! GiXxXmO

var myLoader:Loader = new Loader();
var url:string = xml.attribute(“picture”).toString();
var urlReq:URLRequest = new URLRequest(url);
myLoader.load(urlReq);
myLoader.contentLoaderInfo.addEventListner(Event.COMPLETE, imgLoaded);

function imgLoaded(event:Event):void
{
addChild(myLoader);

}