I’ve been making a drag and drop by using the following code:
plank0_mc.onPress = function() {
startDrag(this);
this.gotoAndStop(2);
//this._rotation = 33;
};
plank0_mc.onRelease = plank0_mc.onReleaseOutside=function () {
StopDrag(this);
}
It works fine apart from the rotation - when it rotates the movieclip the mouse can technically no longer be on the plank anymore. And the mouse is dragging the plank but is not actually on the graphic.
Is there any way of snapping the mouse to the centre of the movieclip no matter where they click?
Thanks for any help!