I have an icon on the stage, that when the user drag’s I want them to drag a copy, be able to release it, and go and get another one, whilst leaving the orginal in it’s place. I’ve tried the code below, but it only let’s me make one copy.
Any clues?
on (press) {
startDrag(this, true);
duplicateMovieClip(this,“mc”+i,i);
}
Ok, to complicate matters more…once the clip has been duplicated I wanted the user to be able to drag it over a ‘dropzone’ much like a trashcan, if they didn’t want it on the scene anymore. Now a second clip still duplicates the first.
I had some code like this in before.
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.stopDrag();
if (_root.dropzone.hitTest(this._x,this._y,true)) {
unloadMovie(this);