# A big problem. can any body solve this

**URL:** <https://forum.kirupa.com/t/a-big-problem-can-any-body-solve-this/215443>\
**Category:** Uncategorized\
**Created:** [February 7, 2007, 11:41am UTC](https://forum.kirupa.com/t/a-big-problem-can-any-body-solve-this/215443 "2007-02-07T11:41:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorawar](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jorawar](https://forum.kirupa.com/u/jorawar)\
**Post date:** [February 7, 2007, 11:41am UTC](https://forum.kirupa.com/t/a-big-problem-can-any-body-solve-this/215443/1 "2007-02-07T11:41:40Z")

</div>

hi every body…  
i make a box on the stage. i just want that, when i press on that box, a duplicate box creates and it is dragable. , so i want to drag duplicate movie clip. when i drag the one, two is created, i drag two three is created…  
but i couldn’t do this by me… i tried a lot… but now here is my code… plz help me…

var mySelection = “”;  
var totalmc = 0;  
var depth = 40;  
wire.onPress = function() {  
this.createEmptyMovieClip([“mc”+totalmc], this.getNextHighestDepth(mc));  
duplicate(mc);  
mc = attachMovie(“idwire”, [“wire”+totalmc++], this.getNextHighestDepth(mc));  
mc.\_x = 273;  
mc.\_y = 196.5;  
dragging(mc);  
};  
function dragging(mc) {  
mc.startDrag(true);  
mySelection = this;  
mc.onMouseUp = function() {  
stopDrag();  
};  
}  
function getNextHighestDepth() {  
depth++;  
return depth;  
}  
function duplicate(mc) {  
mc.duplicateMovieClip([“mc”+i], i);  
i++;  
}

from this. i can drag the duplicate at once, but i want to drag the duplicate any time…
