Won't duplicate into a box

<embed src=http://mlkdesign.online.fr/misc/kirupa/dup_experiment.swf height=300 width=300 type=application/x-shockwave-flash>

mhhh can anyone tell me why the round mc wont duplicate into a box, but makes an ugly pyramid with the wrong coordinates on top of that ???

here’s what’s on the duplicate button


on(release){
	for(m=1; m<=5; m++) {
	    for(i=1; i<=5; i++) {
			drag0.duplicateMovieClip(["drag"+i+"_"+m],i*m);
			setProperty (["drag"+i+"_"+m], _x, drag0._x+i*30);
     		setProperty (["drag"+i+"_"+m], _y, drag0._y+m*30);
			trace("drag"+i+"_"+m)
		}
	}
}

yea mon, I think its the depth you’re assigning the duplicated clips isn’t necessary unique so some clips are getting overwritten

this is your line of duplication code:


drag0.duplicateMovieClip(["drag"+i+"_"+m],i*m);

try something more like this:


++ClipCount;
drag0.duplicateMovieClip(["drag"+i+"_"+m],ClipCount);

should do the job
let me know if it works :wink:

that’s right, m_andrews808. =)

and you could use the initObject, mlk. :wink:

drag0.duplicateMovieClip("drag"+count++, count, {_x:drag0._x+i*30, _y:drag0._y+m*30});