# Problems positioning attachMovie mc's

**URL:** <https://forum.kirupa.com/t/problems-positioning-attachmovie-mcs/157422>\
**Category:** flash\
**Created:** [August 1, 2005, 9:39pm UTC](https://forum.kirupa.com/t/problems-positioning-attachmovie-mcs/157422 "2005-08-01T21:39:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morix](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@Morix](https://forum.kirupa.com/u/Morix)\
**Post date:** [August 1, 2005, 9:39pm UTC](https://forum.kirupa.com/t/problems-positioning-attachmovie-mcs/157422/1 "2005-08-01T21:39:13Z")

</div>

Hi,

I was wondering if somebody could tell me what im doing wrong. I think the code speaks for it self:

```php
 
per_row = 4; // Number of items per row
row_item = 0;
row_count = 0;
xmlNode = this.firstChild.childNodes[1];
total = xmlNode.childNodes.length; //length of xml file
for (i=0; i<total; i++) {
_root.dropZone.attachMovie("container", "pod"+i, i); //Duplicate the pod
row_item++;
_root.dropZone["pod"+i]._x += 180*row_item; //Give the new pod a new x value
_root.dropZone["pod"+i]._y += 215*row_count; //Give the new pod a new y value
if (row_item>=per_row) { //Check if we reached the maximum pods per row
row_item = 0;
row_count++;
}

```

And here you can find a screenshot of it:
