User Guide
104 ActionScript language elements
this.stop_mc.onRelease = function() {
stopAllSounds();
};
See also
Sound
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)