I’m trying to duplicate a button using action script
(for mc)
onClipEvent (load)
{
maxDepth=1000;
z=Math.round(Math.random()maxDepth);
fl=300;
xcenter=175;
ycenter=175;
offx=(startx-xcenter);
offy=(starty-ycenter);
scale=fl/(fl+z);
_x=xcenter+offxscale;
_y=ycenter+offyscale;
_xscale=_yscale=100scale;
}
(for root)
nbClip=50;
for (i=0;i<nbClip;i++){
duplicateMovieClip(ball,“ball”+i,i);
mc=_root[“ball”+i];
mc.startx=Math.round(Math.random()*300)-50;
mc.starty=Math.round(Math.random()*300)-50;
}
So far the button is placed randomly but it isn’t being duplicated
what am i doing wrong ohh and yes this is one of the tutorials but isn’t explained.