Need Help with dual action button

Hello all !
I’m trying to create a website with pages that would simulate layers in Photoshop/Illustrator, by having an option to be clicked on and off.

each page would be a movie clip, and would have a button that when clicked fades the movieclip/page out, and when clicked again will fade it back in etc.

if some one would be kind enough to write the code including the fade script .
I’d rather it be in the code rather than a go to and play tween or something)
just please bare in mind I’m a newbie , with very basic AS knowledge/capability’s.

P.S - I heard the switch/case would be a good solution but I can’t seem to get the code right

Thank you so much