Skip to main content
Participant
March 11, 2008
Question

Hide/Unhide layers on button click

  • March 11, 2008
  • 1 reply
  • 970 views
How do I unhide layers with Actionscript 3?

I have Flash movie where I have invisible buttons with call-out labels
telling user to click an area to display a section of the stage (image).

I start with these regions (layers) hidden through Alpha transparency (0%).
When user clicks the hit area (invisible button) then the region (layer) goes
to 100% alpha to display and make it visible.

How do I do this w. ActionScript?

Fred Z.
This topic has been closed for replies.

1 reply

Inspiring
March 11, 2008
Well you don't. There are no layers once the FLA is published. So I'm not sure how you are setting the alpha of layers to 0%.

You can change the alpha of MovieClips and Sprites and Buttons. The easiest way is to put all the things that need to appear together into a movieclip, you could event call it clipOfLayer1 or some such. They you could just turn on/off the parent visibility on the click.

Otherwise you will need to adjust each individual item by itself.