# Please help with Tweening

**URL:** <https://forum.kirupa.com/t/please-help-with-tweening/299342>\
**Category:** flash\
**Created:** [November 3, 2009, 4:37pm UTC](https://forum.kirupa.com/t/please-help-with-tweening/299342 "2009-11-03T16:37:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshpandya](https://avatars.discourse-cdn.com/v4/letter/h/8c91f0/32.png) [@harshpandya](https://forum.kirupa.com/u/harshpandya)\
**Post date:** [November 3, 2009, 4:37pm UTC](https://forum.kirupa.com/t/please-help-with-tweening/299342/1 "2009-11-03T16:37:47Z")

</div>

Hi guys,

I am getting all the images path from XML and adding those thumbnails on my stage using XMl and for loop,

Now i want to perform tweening effects on all of them but if you see my code - it only does effect on the last object instead of doing on all added objects,

How do i make this work, so all thumbnails gets my tweening effect and i can start that effect and stop ,

Here is my for loop function

```auto
function parseXmlData(parse:XML):void{
            for(var i:Number = 0; i < parse.images.image.length(); i++){
                //trace(parse.images.image.thumb.text()*);
                var thumbnail:Thumbnail = new Thumbnail(parse.images.image.thumb.text()*, parse.images.image.large.text()*, 100, 100);
                thumbnail.x = parse.images.image.x.text()*;
                thumbnail.y = parse.images.image.y.text()*;        
                addChild(thumbnail);
                
                //Once we create each image Object now we do the Tweening Effect on each one of them
                var myTween:Tween = new Tween(thumbnail, "x", Back.easeOut, 40, 300, 5, true);
                //var myTween_alpha:Tween = new Tween(thumbnail, "alpha", Strong.easeOut, 1, 0, 10, true);
                myTween.start();
                //myTween_alpha.start();
            }
            
            //trace(parse.images.image.length());
            //trace(parse.images.image.thumb.text()[0]);
            //trace(parse.images.image.large.text()[0]);        
        }

```
