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:
...
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)