Example
The following example sets the
. The property is set to
myMC2_mc
instance cannot be clicked after the
myMC1_mc
myMC1_mc.onRelease = function() {
trace(this._name+"._visible = false");
this._visible = false;
};
myMC2_mc.onRelease = function() {
trace(this._name+"._alpha = 0");
this._alpha = 0;
};
See also
_visible (Button._visible property)
_width (MovieClip._width property)
public _width : Number
The width of the movie clip, in pixels.
Availability: ActionScript 1.0; Flash Player 4
Example
The following code example displays the height and width of a movie clip in the Output
panel:
this.createEmptyMovieClip("triangle", this.getNextHighestDepth());
triangle.beginFill(0x0000FF, 100);
triangle.moveTo(100, 100);
triangle.lineTo(100, 150);
triangle.lineTo(150, 100);
triangle.lineTo(100, 100);
trace(triangle._name + " = " + triangle._width + " X " + triangle._height +
" pixels");
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
_height (MovieClip._height property)
938
ActionScript classes
property for two movie clips called
_visible
for one instance, and
true
_visible
,
_visible (TextField._visible property)
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
myMC1_mc
for the other. Notice that
false
property is set to
false
method.
and
.
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?