# Targeting Dynamic Clips in Array

**URL:** <https://forum.kirupa.com/t/targeting-dynamic-clips-in-array/192612>\
**Category:** flash\
**Created:** [June 29, 2006, 7:23pm UTC](https://forum.kirupa.com/t/targeting-dynamic-clips-in-array/192612 "2006-06-29T19:23:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geminian1](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@Geminian1](https://forum.kirupa.com/u/Geminian1)\
**Post date:** [June 29, 2006, 7:23pm UTC](https://forum.kirupa.com/t/targeting-dynamic-clips-in-array/192612/1 "2006-06-29T19:23:25Z")

</div>

Hi Guys.

I made an array containg 3 clips and dynamically attached them to my main timeline. I can successfully tween all of them with the following code.

```auto

import mx.transitions.Tween;
import mx.transitions.easing.*;
xpos = 50;
ypos = 100;
mydistance = 20;
var myclips = ["blue","grey","red"];
for(i=0;i<myclips.length;i++){
 var b = this.attachMovie(myclips*,"myclip2"+i,i);
     b._x = xpos;
     b._y = ypos;
  xpos += b._width + mydistance;
  b.onRollOver = function(){
   new Tween(this,"_xscale",Back.easeOut,this._xscale,120,3,true);
       }
 
}

```

However, what I want to do is to target the three with different tweens. For example, how do I tween the \_xscale of one and the \_x of the one next to it? I know I can do it without having dynamically attach the clips but this method (if I can learn it) seems to have more power.

Thanx in advance!
