Hi guys i’m trying to loading three different images from xml in three differents movieclips that i have on the stage.
function handleComplete(e:Event){
var myXML:XML = new XML(e.target.data);
var mySfondo = myXML.sfondo;
for(var i:uint = 0; i < 3; i++)
{
URLArray* = mySfondo*.@url;
loaderBG.load(new URLRequest(URLArray*));
loaderBG.contentLoaderInfo.addEventListener(Event.COMPLETE, sfondoCompleto);
}
}
function sfondoCompleto(e:Event){
var my_thumb:Loader = Loader(e.target.loader);
my_thumb.x = my_thumb.y = 0;
(my_thumb.content as Bitmap).smoothing = true;
mainSfondo.sfondo1.addChild(my_thumb);
}
This is my code for loading the three different images but in the addChild it adds only the last image…how can i do?
Please help me.