I would like to have a button (x) control the visibility of a picture (y). When the user rolls over button (x) the visibility of picture (y) would tun off. And when the user rolls out of button (x) the visibility of picture (y) would turn on.
- I created a movie clip of the picture (“hldoc”),
- I gave it an instance name (“hldoc”), and
- I wrote the following code for button (x):
on (rollOver) {
hldoc._visibility=false;
}
on (rollOut) {
hldoc._visibility=true;
}
I even tried:
on (rollOver) {
_root.hldoc._visibility=false;
}
on (rollOut) {
_root.hldoc._visibility=true;
}
BTW the picture is in a seperate layer from the button, so if it is easier to control the visibility of a layer, then I could have the button turn on/off the layer’s visibility.
Thanks in advance for any ideas,
John