# MC property value fails to update

**URL:** <https://forum.kirupa.com/t/mc-property-value-fails-to-update/123926>\
**Category:** Uncategorized\
**Created:** [September 28, 2004, 4:43pm UTC](https://forum.kirupa.com/t/mc-property-value-fails-to-update/123926 "2004-09-28T16:43:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tizzle](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@tizzle](https://forum.kirupa.com/u/tizzle)\
**Post date:** [September 28, 2004, 4:43pm UTC](https://forum.kirupa.com/t/mc-property-value-fails-to-update/123926/1 "2004-09-28T16:43:46Z")

</div>

after a succesful first experience with the Kirupa forums i’m back for more! 😉

I’m trying to output a table like structure where i attachMovie() 5 MC’s in a row then change the \_y and set the \_x back to zero for a new row, and print another five. and so on, and so on.

The problem is that after setting the \_x to zero the next clip i attach on the 2nd row goes on from it’s old \_x and \_y position. I do the following in a loop:

```auto

...
if (num%cols==0 && num != 0) {
	clip._x = 0;
	clip._y += newHeight+spacing;
} else if (num != 0) {
	clip._x += (newWidth+spacing)*num;
}
...

```

for the full source please check the attached .fla (beware of uncommented code though)
