SWiSH Player Support
SWF4 or later - Supported Internally
Syntax
stopDrag()
Arguments
None.
Returns
Nothing.
Description
This Action stops the current Drag Action.
As only one simultaneous Drag Action is permitted, the target Sprite / Object is implied.
Sample
Make Object draggable while mouse is pressed, stop dragging when mouse is released.
onSelfEvent (press) {
this.startDragLocked();
}
onSelfEvent (release) {
stopDrag();
}
See Also
startDragLocked(), startDragUnlocked() and stopDrag().