Question
AS3 duplicate a movie clip that exists on stage
I'm using AS3 in timeline. I'm trying to duplicate a movie clip that exists on stage. I'm unsuccessfully using the following code:
name of movie clip on stage = ball_mc
var i:Number = 2; //it will be the total number of circles
function makeACircle(e:Event):void {
ball_mc.x = Math.random () *400;
ball_mc.y = Math.random () *250;
i++;
}
Please help me figure out how to duplicate a movie clip not using its class name.
German