03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The MovieClip.getNextHighestDepth() method used in this example requires Flash Player<br />

7 or later. If your SWF file includes a version 2 component, use the version 2 components'<br />

DepthManager class instead of the MovieClip.getNextHighestDepth() method.<br />

See also<br />

loadMovie (MovieClip.loadMovie method), removeMovieClip<br />

(MovieClip.removeMovieClip method), duplicateMovieClip function<br />

enabled (MovieClip.enabled property)<br />

public enabled : Boolean<br />

A Boolean value that indicates whether a movie clip is enabled. The default value of enabled<br />

is true. If enabled is set to false, the movie clip's callback methods <strong>and</strong> onaction event<br />

h<strong>and</strong>lers are no longer invoked, <strong>and</strong> the Over, Down, <strong>and</strong> Up frames are disabled. The<br />

enabled property does not affect the Timeline of the movie clip; if a movie clip is playing, it<br />

continues to play. The movie clip continues to receive movie clip events (for example,<br />

mouseDown, mouseUp, keyDown, <strong>and</strong> keyUp).<br />

The enabled property only governs the button-like properties of a movie clip. You can<br />

change the enabled property at any time; the modified movie clip is immediately enabled or<br />

disabled. The enabled property can be read out of a prototype object. If enabled is set to<br />

false, the object is not included in automatic tab ordering.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<br />

Example<br />

The following example disables the circle_mc movie clip when the user clicks it:<br />

circle_mc.onRelease = function() {<br />

trace("disabling the "+this._name+" movie clip.");<br />

this.enabled = false;<br />

};<br />

endFill (MovieClip.endFill method)<br />

public endFill() : Void<br />

Applies a fill to the lines <strong>and</strong> curves that were since the last call to beginFill() or<br />

beginGradientFill(). Flash uses the fill that was specified in the previous call to<br />

beginFill() or beginGradientFill(). If the current drawing position does not equal the<br />

previous position specified in a moveTo() method <strong>and</strong> a fill is defined, the path is closed with<br />

a line <strong>and</strong> then filled.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<br />

MovieClip 869

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!