PDA

View Full Version : A quick hand with duplicateMovieClip ?


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

uten
07-22-2004, 09:27 AM
use this instead:


_root[sqvar]._y = i*40;


jon

exstatic
07-23-2004, 12:22 AM
of course!

Thanks Heaps!