function XmlLoaded(event:Event):void {
XmlGalery = new XML(event.target.data);
XmlGaleryList = XmlGalery.children();
//trace(XmlGaleryList.length());
for (var i:int = 0; i< XmlGaleryList.length(); i++) {
ImageLoader = new Loader();
ImageLoader.x = 10 * i ;
ImageLoader.y = 10 * i;
ImageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, ImageLoaded);
ImageLoader.load(new URLRequest("img/" + XmlGaleryList*.attribute("file")));
}
}
function ImageLoaded(event:Event):void {
ImageTween = new Tween(ImageLoader,"width",Elastic.easeOut,0,100,2,true);
ImageTween = new Tween(ImageLoader,"height",Elastic.easeOut,0,75,2,true);
addChild(ImageLoader);
trace("hello");
}
i loaded an image and i want to show it slowly,… but it shows only one picture ,… the last one,… i put cordinates x = 10 * i,… i have 20 pictures .
It tweens and shows me only the last picture at x = 20 *10 ,… :S