# Targeting dynamically attached clips

**URL:** <https://forum.kirupa.com/t/targeting-dynamically-attached-clips/198009>\
**Category:** flash\
**Created:** [August 21, 2006, 6:55pm UTC](https://forum.kirupa.com/t/targeting-dynamically-attached-clips/198009 "2006-08-21T18:55:02Z")\
**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:** [August 21, 2006, 6:55pm UTC](https://forum.kirupa.com/t/targeting-dynamically-attached-clips/198009/1 "2006-08-21T18:55:02Z")

</div>

Hi guys,

I want to target ALL the 20 clips attached as below, at the same time, when I press the button “blue”.  
However, my code can target only ONE of the clips at any time. I have tried attaching the clips to a separate dynamic clip and then targeting it but problems with the registration point (0,0) of that clip means I cannot achieve the result I want:

```auto

for(i=0;i<20;i++){
 mc = this.attachMovie("red","red2"+i,i);
 var scaleFactor:Number = Math.random() * 80 + 20;
 mc._x = Math.random()*500;
 mc._y = Math.random()*400;
 mc._xscale = scaleFactor;
 mc._yscale = scaleFactor;
 
blue.onRelease = function(){
  new Tween(mc,"_xscale",Strong.easeOut,mc._xscale,200,3,true);
  new Tween(mc,"_yscale",Strong.easeOut,mc._yscale,200,3,true);
          }
}

```

Thanks for any help. 🙂
