I need help stopping a drag actionscript

Hiya,
Im using this actionscript:
http://www.kirupa.com/developer/mx/followease.htm

But want to be able to start and stop the drag effect.

How do i do this?

Please help,

-corrigon:sigh:

change
[AS]onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}[/AS]

to…

[AS]onClipEvent (enterFrame) {
if(_root.drag)
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
}[/AS]

then apply these actions to the button:
[AS]on(release) {
if(!_root.drag) {
_root.drag = true;
} else {
_root.drag = false;
}
}[/AS]

The button just changes a variable stored in _root to true/false and the if() in the other code checks it!

thank!!!

flash is very complicated but im getting ther!