# Tween not visible

**URL:** <https://forum.kirupa.com/t/tween-not-visible/242229>\
**Category:** flash\
**Created:** [October 23, 2007, 9:39pm UTC](https://forum.kirupa.com/t/tween-not-visible/242229 "2007-10-23T21:39:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinek](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sinek](https://forum.kirupa.com/u/sinek)\
**Post date:** [October 23, 2007, 9:39pm UTC](https://forum.kirupa.com/t/tween-not-visible/242229/1 "2007-10-23T21:39:55Z")

</div>

```auto
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
