There is a layer on my application which i want the user to be able to hide if they wanted to, by clicking a button.

hiding a layer in the timeline while creating a flash (clicking the eye dot thing which makes a cross on the dot and hides the layer)... this is the function i want a button to do... and undo by clicking a second time.

thank-you in advance.