# MC property value fails to update

**URL:** <https://forum.kirupa.com/t/mc-property-value-fails-to-update/65665>\
**Category:** flash\
**Created:** [September 28, 2004, 4:43pm UTC](https://forum.kirupa.com/t/mc-property-value-fails-to-update/65665 "2004-09-28T16:43:46Z")\
**Posts on this page:** 3\
**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/65665/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)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 8:31am UTC](https://forum.kirupa.com/t/mc-property-value-fails-to-update/65665/2 "2004-09-29T08:31:05Z")

</div>

i forgot to mention that the attached .fla was made with MX 2004 professional.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 8:44am UTC](https://forum.kirupa.com/t/mc-property-value-fails-to-update/65665/3 "2004-09-29T08:44:26Z")

</div>

a new morning brings new insights… simply saving the properties in seperate variables solved it already…
