hi i've read some other threads about this but i can't seem to get them to work with my script..i'm trying to fill my stage with squares to make a visual grid, using setInterval so it shows them animating across row by row.
so far i have this:
Code:
var counter = 1;
var i = 2;
function duplicateMC () {
duplicateMovieClip(square,"square" + i, i)
setProperty("square" + i, _x, (i-1) * 14);
i++;
if (counter == 50) {
clearInterval(counterInterval);
}
counter++;
}
var counterInterval = setInterval(this, "duplicateMC", 10);
and that's building one row v nicely
however i've tried adding in code to make it break onto the next row after duplicating 50 but can't seem to get it to work no matter what i do..
any tips?? thanks!