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…