Problem!

Hello all.

I’ve been trying to get this effect of having one movie clip duplicated several times to get a box like effect like-

o o o o o o o
o o o o o o o
o o o o o o o

I tried using -

onClipEvent(load){

for(i=0;i<100;i++){

this.duplicateMovieClip(“movieclip”+i,i)
_root[“movieclip”+i]._x=movieclip._x + (movieclip._width+5)*i

}

but this only duplicates it in a straight line. How do i get the _y also??

PS. I am using flash 5 so don’t send me mx flas.

Thanx

:goatee:

Hi,

use this code of frame
box is movie clip instance name::

depth = 1;
xpos =box._x;
ypos =box._y;
while (i<=5) {
j = 1;
while (j<=5) {
duplicateMovieClip(“box”, “box” add depth, depth);
_root[“box” add depth]._x=xpos
_root[“box” add depth]._y=ypos
ypos += box._height;
depth += 1;
j += 1;
}
ypos =box._y;
xpos += box._width;
i += 1;
}

Rgards,
Ajo