Link to home
Start Free TrialLog in
Avatar of frosty5656
frosty5656

asked on

hide/show layer useing action script?

i would like to know how to hide or show a layer useing action script.

thx.
Avatar of negatyve
negatyve

flash layer or html layer?
hi,
first of all give your layer a name
for example your layers name is home
then
under your button event of keyframe
write down:

home._visible=true;

or to hide

home._visible=false;

inshort :
<layername>._visible=true/false;

thank you
ASKER CERTIFIED SOLUTION
Avatar of Zeffer
Zeffer
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of frosty5656

ASKER

too bad layers can't be hidden :(
don't think layers..think movieclips..and they can be..
just reverse the code above to have the clip hide on the stage..and then show on rollover.

Z