This is the present code:
var count:Number = 0;
var i:Number = 0;
function onEnterFrame() {
count++;
if (count == 120) {
i++;
duplicateMovieClip(_root.orig, "MC"+i, 1000+i);
_root["MC"+i]._x = random(550);
_root["MC"+i]._y = random(400);
}
count = 0;
}
I have a movieclip on the stage with the instance name of "orig".
That's all the code in the fla so this should be simple.
The count variable is basically a timer, since the swf runs at 30fps. So every 3 seconds, I duplicate movieclip should be made and placed randomly. But it's not working.
Any help? Please.