? about hidden layers while I'm at it

I was searching for a way to make LAYERS hidden/visible through a/s.

  • Example : on click of a btn two layers become hidden while one stays visible. Then upon click of another button the current LAYER becomes hidden and another layer becomes visible…

i was thinking along the lines of…

on (press) {
     this.hidden(layer1);
     this.visible(layer2);
     this.hidden(layer3);
}

Which obvoiusly is wrong but I dont know where to start with this. Thanks

~ Seretha :love: