User Guide

MovieClip 857
enabled (MovieClip.enabled property)
public enabled : Boolean
A Boolean value that indicates whether a movie clip is enabled. The default value of enabled
is
true. If enabled is set to false, the movie clip's callback methods and onaction event
handlers are no longer invoked, and the Over, Down, and Up frames are disabled. The
enabled property does not affect the Timeline of the movie clip; if a movie clip is playing, it
continues to play. The movie clip continues to receive movie clip events (for example,
mouseDown, mouseUp, keyDown, and keyUp).
The
enabled property only governs the button-like properties of a movie clip. You can
change the
enabled property at any time; the modified movie clip is immediately enabled or
disabled. The
enabled property can be read out of a prototype object. If enabled is set to
false, the object is not included in automatic tab ordering.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example disables the
circle_mc movie clip when the user clicks it:
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 that were since the last call to beginFill() or
beginGradientFill(). Flash uses the fill that was specified in the previous call to
beginFill() or beginGradientFill(). If the current drawing position does not equal the
previous position specified in a
moveTo() method and a fill is defined, the path is closed with
a line and then filled.
Availability: ActionScript 1.0; Flash Player 6
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);