
MovieClip._width Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
705
MovieClip._visible Property
whether a clip or movie is shown or hidden
Flash 4
read/write
mc._visible
Description
The Boolean _visible property indicates whether mc is currently shown (true) or hidden
(
false). We use _visible as a quick means of hiding a movie clip or movie from view. Note
that button events and the onKeyUp() and onKeyDown() event handler properties do not
fire when a clip is not visible, but otherwise the clip operates as normal. It can still be
controlled via ActionScript; it can still be played, stopped, and detected with hitTest(); and
it can still receive other movie clip events. Invisible clips are simply not displayed on
screen.
The initial value of the
_visible property for all movie clips is true, even for movie clips
that are fully transparent or completely off stage. The
_visible property changes only when
it is deliberately modified by a script; think of it as a way to show and hide clips program-
matically, not as a reflection of all factors (such as position and transparency) that can
affect a clip’s visibility.
Hiding a movie clip using the
_visible property is preferred to setting it to fully trans-
parent or moving it off stage, because the Flash Player does not attempt to draw the
graphics in movie ...