# Targeting a movieclip in a loop

**URL:** https://forum.kirupa.com/t/targeting-a-movieclip-in-a-loop/205388
**Category:** Uncategorized
**Created:** [October 29, 2006, 12:49am UTC](https://forum.kirupa.com/t/targeting-a-movieclip-in-a-loop/205388 "2006-10-29T00:49:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jakek23](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jakek23](https://forum.kirupa.com/u/jakek23)
#### Post date: [October 29, 2006, 12:49am UTC](https://forum.kirupa.com/t/targeting-a-movieclip-in-a-loop/205388/1 "2006-10-29T00:49:44Z")

</div>

so… im not real sure how to word what i am trying to do, hopefully the title is ok. anyways… i have a for loop and i want to do things with it:

for(i;i\<=2;i++){  
if(box+i.\_width\>20){  
var box\_width:Tween = new Tween(box+i, “\_width”, Elastic.easeOut, 750, 20, 3, true);  
var box\_height:Tween = new Tween(box+i, “\_height”, Elastic.easeOut, 350, 20, 3, true);  
var box\_X:Tween = new Tween(box+i, “\_x”, Regular.easeOut, 450, box+i+\_X, 1, true);  
var box\_Y:Tween = new Tween(box+i, “\_y”, Regular.easeOut, 400, box+i+\_Y, 1, true);  
};

the “box+i” in the tween doesnt work, and I dont know what to do to make it work. TIA

Jake
