Just pondering...

I've been working on a project for a while. My first big one in Flash for over a year... and I ran into something funny... well to me it was

When I use startDrag() to make a mc follow the mouse it works ok. The mc follows the mouse as long as the mouse is over the stage. Moving the mouse outside of the stage pauzes the dragging action untill the mouse is within the stage boundries again...

But when I do something like:
Code:
// in case of lock to center
_root.draggable_mc.onMouseMove = function()
{
_root.draggable_mc._x = _root._xmouse-(_root.draggable_mc._width/2);
_root.draggable_mc._y = _root._ymouse-(_root.draggable_mc._height/2);
}

// in case of not locking to center but to the point clicked
_root.draggable_mc.onPress = function()
{
_root.dragMc_x_mouseOffset = _root._xmouse-_root.draggable_mc._x;
_root.dragMc_y_mouseOffset = _root._ymouse-_root.draggable_mc._y;
}

_root.draggable_mc.onMouseMove = function()
{
_root.draggable_mc._x = _root._xmouse_root.dragMc_x_mouseOffset;
_root.draggable_mc._y = _root._ymouse_root.dragMc_y_mouseOffset;
}
Imagine the code you'll need with a constrained set... believe me, it's quiet long. So why doing this? The mc keeps on following the mouse even when the mouse is out of the stage boundries... which can be very usefull in some cases.

But because this will need quiet some coding I was wondering if this same effect is possible with startDrag. Ofcourse not in the standard way but maybe with some different settings...

Like I said, just pondering

cheers