Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Properties > _visible | |||
Flash Lite 1.0.
my_mc:_visible
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.
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;
}
|
|
|
|