Visible Property

Visible Property

Flash CS4 ActionScript 3.0 Tutorial


How to Assign a Visibility Property to Button Symbols, Movie Symbols and Text with Flash ActionScript



The visible property sets the object to one of two states, visible and invisible. Since it is a Boolean value, acceptable values are false and true.

Tutorial Elements

Movie Symbol with instance name visMovie_mc


Step One

Add a Movie Symbol to the stage.

Step Two

Select the object and open the Properties panel (Cmd/F3 (PC-Ctrl/F3)). Type in the name visMovie_mc for the Instance Name.

Step Three

Add a new layer called Actions.

Step Four

Option double-click (PC - Alt double-click) the keyframe in the Actions layer to open the ActionScript panel.

Step Five

Copy/Paste the following code to the ActionScript panel.

visMovie_mc.visible = false;

Step Six

Test your movie by pressing Cmd/Return (PC - Ctrl/Enter). By setting the visible value to false, the object is hidden.

True Makes it Visible

In this example we set the visible value to false. Try setting the value to true to make the symbol visible.


Stock Photos from 123RF