Nested loops, maybe?

Hi everyone,

I kinda need some help with something. I want to create a certain effect. Basically what I want to do is duplicate a certain movieclip say just for example 10 times but each time this clip is duplicated I want to move it 5 pixels to the right. I’m pretty sure it can be achieved with nested loops but I’m insure about how to go about it. If anyone could help me out it would be great whether its through nested loops our not.

Thanks alot

Kyle

<:}

1 loop should be enough. If you need to make a grid, there should be something about it somewhere too (you’ll need nested loops for that).

  1. Make a mc and give it the instance name “m10” and place it on the main timeline somewhere near top left of stage.

  2. Place this AS on the mc

onClipEvent (load) {
if (_name != “m10”) {
_x += (eval("_parent.m".concat(_name.substr(-2)-1, “._x”)));
}
}

  1. Place this AS on f1 of the main timeline

for (i=11; i<=20; i++) {
m10.duplicateMovieClip(“m”.concat(i), i);
}