On the actual movie clip that drags when the button is pressed:
onClipEvent (load) {
xfinal = _x;
yfinal = _y;
}
onClipEvent (enterFrame) {
if (drag) {
x = _root._xmouse+xd;
y = _root._ymouse+yd;
} else {
x = xfinal+xd;
y = yfinal+yd;
}
_x += (x-_x)/3;
_y += (y-_y)/3;
}
I want to constrain the MC to 1, 1, 300, 500 and have tried using:
startDrag("", false, 1, 1, 300, 500);
however this just balls’s everything up.
I guess something similar needs adding, however my action script is poor and have therefore attached the swf for anyone who can help.