# Help with x/y coordinate placement loop

**URL:** <https://forum.kirupa.com/t/help-with-x-y-coordinate-placement-loop/209715>\
**Category:** Uncategorized\
**Created:** [December 11, 2006, 9:18pm UTC](https://forum.kirupa.com/t/help-with-x-y-coordinate-placement-loop/209715 "2006-12-11T21:18:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ektorp](https://avatars.discourse-cdn.com/v4/letter/e/87869e/32.png) [@ektorp](https://forum.kirupa.com/u/ektorp)\
**Post date:** [December 11, 2006, 9:18pm UTC](https://forum.kirupa.com/t/help-with-x-y-coordinate-placement-loop/209715/1 "2006-12-11T21:18:55Z")

</div>

I have the following code below hard-coding the x/y coordinates of 8 movie clips. I am trying to write some code that will generate this so that it will accomodate any number of content clips so that I do not have to go back in and create new x/y corrdinates for additional clips. Any help with creating this for loop would be greatly appreciated.

Basically, it is 2 columns of movie clip content with 120 pixels between the rows:

clipContainer.content1.\_x = 0;  
clipContainer.content1.\_y = 35;

clipContainer.content2.\_x = 240;  
clipContainer.content2.\_y = 35;

clipContainer.content3.\_x = 0;  
clipContainer.content3.\_y = 155;

clipContainer.content4.\_x = 240;  
clipContainer.content4.\_y = 155;

clipContainer.content5.\_x = 0;  
clipContainer.content5.\_y = 275;

clipContainer.content6.\_x = 240;  
clipContainer.content6.\_y = 275;

clipContainer.content7.\_x = 0;  
clipContainer.content7.\_y = 395;

clipContainer.content8.\_x = 240;  
clipContainer.content8.\_y = 395;
