Stopdrag Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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
when the user releases the mouse button:
my_mc
my_mc.onPress = function () {
startDrag(this);
}
my_mc.onRelease = function() {
stopDrag();
}
See also
startDrag function
(MovieClip.startDrag method)
104
ActionScript language elements
,
_droptarget (MovieClip._droptarget property)
,
stopDrag (MovieClip.stopDrag method)
,
startDrag

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF