Stopdrag (Movieclip.stopdrag Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example shows how to stop a movie clip named
aMovieClip.stop();
See also
stop function

stopDrag (MovieClip.stopDrag method)

public stopDrag() : Void
Ends a
MovieClip.startDrag()
method remains draggable until a
becomes draggable. Only one movie clip is draggable at a time.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Note: This method is supported in Flash Lite only if
or
true
System.capabilities.hasStylus
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a draggable movie clip instance called
this.createEmptyMovieClip("mc_1", 1);
with (mc_1) {
lineStyle(1, 0xCCCCCC);
beginFill(0x4827CF);
moveTo(0, 0);
lineTo(80, 0);
lineTo(80, 60);
lineTo(0, 60);
lineTo(0, 0);
endFill();
}
mc_1.onPress = function() {
this.startDrag();
};
mc_1.onRelease = function() {
this.stopDrag();
};
514
ActionScript classes
method. A movie clip that was made draggable with that
method is added, or until another movie clip
stopDrag()
System.capabilities.hasMouse
is
.
true
:
aMovieClip
:
mc_1
is

Advertisement

Table of Contents
loading

Table of Contents