
MovieClip.stopDrag() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
697
Example
// Code to drag and drop the current clip or movie
this.onPress = function () {
this.startDrag(true);
};
this.onRelease = function () {
stopDrag();
}
See Also
MovieClip.stopDrag(), startDrag(), stopDrag(); “Method Versus Global Function Overlap
Issues” in Chapter 13
MovieClip.stop() Method
pause a clip or movie
Flash 5
mc.stop()
Description
The MovieClip.stop() method is an alternative to the global stop() function. Use the
MovieClip method form to control remote movie clips or main movies specified by mc. The
Flash Player continues to render the Stage’s contents and process events even when the
playhead is stopped.
For general usage instructions, see the global stop() function.
Example
// Halt the playback of spinner_mc
spinner_mc.stop();
See Also
MovieClip.nextFrame(), MovieClip.play(), MovieClip.prevFrame(), stop()
MovieClip.stopDrag() Method
end a drag operation in progress
Flash 5
mc.stopDrag()
Description
The MovieClip.stopDrag() method is an alternative to the global stopDrag() function.
However, there is no need to use the MovieClip method form; stopDrag() cancels any drag
operation in progress, whether invoked through a movie clip or as a global function.
See Also
MovieClip.startDrag(), stopDrag()