How to add duplicate movieclip "box_mc" in attached code?
I would like the "box_mc" movieClip to remain on the stage and a duplicate created when clicked on and dragged to a new location on the stage.
Actionscript Code:
box_mc.addEventListener(MouseEvent.MOUSE_DOWN, duplicateBox);
var startX:Number;
var startY:Number;
function duplicateBox(event:MouseEvent):void {
event.target.parent.addChild(event.target);
startX = event.target.x;
startY = event.target.y;
event.target.startDrag(true);
}
Thanks for any help.