Stop (Movieclip.stop 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

[optional] - Value relative to the coordinates of the movie clip's parent that
left:Number
specify a constraint rectangle for the movie clip.
[optional] - Value relative to the coordinates of the movie clip's parent that
top:Number
specify a constraint rectangle for the movie clip.
[optional] - Value relative to the coordinates of the movie clip's parent that
right:Number
specify a constraint rectangle for the movie clip.
[optional] - Value relative to the coordinates of the movie clip's parent that
bottom:Number
specify a constraint rectangle for the movie clip.
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();
};
See also
_droptarget (MovieClip._droptarget property)
(MovieClip.stopDrag method)

stop (MovieClip.stop method)

public stop() : Void
Stops the movie clip currently playing.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Lite 2.0
:
mc_1
,
startDrag function
,
stopDrag
MovieClip
513

Advertisement

Table of Contents
loading

Table of Contents