Flash Lite 2.x and 3.0 ActionScript Language Reference

stopDrag function

stopDrag() : Void

Stops the current drag operation.

Note: This method is supported in Flash Lite only if System.capabilities.hasMouse is true or System.capabilities.hasStylus is true.

Example

The following code, placed in the main Timeline, stops the drag action on the movie clip instance my_mc when the user releases the mouse button:

my_mc.onPress = function () {
 startDrag(this);
}

my_mc.onRelease = function() {
 stopDrag();
}

See also

startDrag function, _droptarget (MovieClip._droptarget property), startDrag (MovieClip.startDrag method), stopDrag (MovieClip.stopDrag method)