Endfill (Movieclip.endfill 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

The
property only governs the button-like properties of a movie clip. You can
enabled
change the
enabled
disabled. The
enabled
, the object is not included in automatic tab ordering.
false
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example disables the
circle_mc.onRelease = function() {
trace("disabling the "+this._name+" movie clip.");
this.enabled = false;
};

endFill (MovieClip.endFill method)

public endFill() : Void
Applies a fill to the lines and curves added since the last call to
beginGradientFill()
or
beginFill()
beginGradientFill()
previous position specified in a
a line and then filled.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a square with red fill on the Stage:
this.createEmptyMovieClip("square_mc", this.getNextHighestDepth());
square_mc.beginFill(0xFF0000);
square_mc.moveTo(10, 10);
square_mc.lineTo(100, 10);
square_mc.lineTo(100, 100);
square_mc.lineTo(10, 100);
square_mc.lineTo(10, 10);
square_mc.endFill();
An example is also in the drawingapi.fla file in the ActionScript samples folder. The following
list gives typical paths to this folder:
Windows: boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript
Macintosh: Macintosh HD/Applications/Macromedia Flash 8/Samples and Tutorials/
Samples/ActionScript
property at any time; the modified movie clip is immediately enabled or
property can be read out of a prototype object. If
circle_mc
. Flash uses the fill that was specified in the previous call to
. If the current drawing position does not equal the
moveTo()
movie clip when the user clicks it:
method and a fill is defined, the path is closed with
is set to
enabled
or
beginFill()
MovieClip
463

Advertisement

Table of Contents
loading

Table of Contents