milhowsse
05-10-2005, 01:29 PM
im trying to set up a simple drag and drop so that when the original mc is clicked, it duplicates the the mc and begins to drag the duplicate. the issue im having is determining the instance name for the stopDrag.
//------------------------------
i = 0;
mcPaper.onPress = function() {
mcPaper.duplicateMovieClip("mcPaper"+i);
startDrag(["mcPaper"+i]);
i += 1;
};
what goes here?.onRelease = function() {
stopDrag();
var trashed:Boolean = mcTrashcan.hitTest(this);
if (trashed) {
this.gotoAndPlay("go");
mcTrashcan.gotoAndStop("full");
}
};
//------------------------------
any help would be appreciated
:confused:
//------------------------------
i = 0;
mcPaper.onPress = function() {
mcPaper.duplicateMovieClip("mcPaper"+i);
startDrag(["mcPaper"+i]);
i += 1;
};
what goes here?.onRelease = function() {
stopDrag();
var trashed:Boolean = mcTrashcan.hitTest(this);
if (trashed) {
this.gotoAndPlay("go");
mcTrashcan.gotoAndStop("full");
}
};
//------------------------------
any help would be appreciated
:confused: