User Guide

592 Chapter 2: ActionScript Language Reference
MovieClip._visible
Availability
Flash Player 4.
Usage
my_mc._visible:Boolean
Description
Property; a Boolean value that indicates whether the movie clip specified by my_mc is visible.
Movie clips that are not visible (
_visible property set to false) are disabled. For example, a
button in a movie clip with
_visible set to false cannot be clicked.
Example
The following example sets the _visible property for two movie clips called myMC1_mc and
myMC2_mc. The property is set to true for one instance, and false for the other. Notice that
myMC1_mc instance cannot be clicked after the _visible property is set to false.
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
Button._visible, TextField._visible