exstatic
07-22-2004, 07:08 AM
Im trying to duplicate my mc down the screen.. but its not working..
this is my code on frame 2
sqvar = "square"+i;
if(i < 20){
square.duplicateMovieClip(sqvar, i);
_root[sqvar]._y = _root[sqvar]._y + 40 ;
i = i+1;
}
on frame 3 I have a gotoAndPlay(2);
Ive run a trace on _root.sqvar and got what expected
square1
square2
square3
square4
square5
However.. the mc only appears to duplicate in one spot.. not an extra 40 down the screen.. any ideas?
cheeers
ex
this is my code on frame 2
sqvar = "square"+i;
if(i < 20){
square.duplicateMovieClip(sqvar, i);
_root[sqvar]._y = _root[sqvar]._y + 40 ;
i = i+1;
}
on frame 3 I have a gotoAndPlay(2);
Ive run a trace on _root.sqvar and got what expected
square1
square2
square3
square4
square5
However.. the mc only appears to duplicate in one spot.. not an extra 40 down the screen.. any ideas?
cheeers
ex