
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)
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...