EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Stopdrag Function

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)

Table of Contents

Related product manuals