en un drag and drop quiero que cuando coincida con su destino ya no se pueda mover mas
este es mi codigo
Código :
origX = garbage_mc._x;
origY = garbage_mc._y;
garbage_mc.onPress = function() {
this.startDrag();
}
garbage_mc.onRelease = function() {
if (this.hitTest(trashcan_mc)) {
this.stopDrag();
_root.great.gotoAndPlay(2);
this._x = trashcan_mc._x;
this._y = trashcan_mc._y;
} else if(this.hitTest(basura)){
this.stopDrag();
trace("Try Again");
this._x = origX;
this._y = origY;
}
else {
this.stopDrag();
this._x = origX;
this._y = origY;
}
};gracias!
