stopDrag function

stopDrag() : Void

Stops the current drag operation.

Availability: ActionScript 1.0; Flash Player 4

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)


Version 8

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00001772.html