_visible

Availability

Flash Lite 1.0.

Usage

my_mc:_visible

Description

Property; a Boolean value that indicates whether the movie clip that my_mc specifies 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. Movie clips are visible unless explicitly made invisible in this manner.

Example

The following code disables the my_mc movie clip when the user presses the 3 key, and enables it when the user presses the 4 key:

on(keyPress "3") {
     my_mc:_visible = 0;
 }
 
 on(keyPress "4") {
     my_mc:_visible = 1;
 }