Showing and hiding a layer by clicking on the same image By Aaron Barth Hi, I can't seem to figure out how to show and then hide a layer by clicking on the same image. What I want is the slide to function like this: Base layer: Click on "object1" to show "layer1" Layer1: Click on "object1" (which is on the base layer) to hide "layer1" (i.e. "this layer") A work around that I've figured out is to copy "object1" on to "layer1". But I imagine there is a more parsimonious way to do this. Any help? Thanks, Aaron

Michael Hinze almost 8 years ago03/06/14 at 8:05 am (UTC) Here is a quick example of toggling a True/false variable, which is then used to show/hide a layer. Hope that's what you wanted. togglelayer_mh.story

Aaron Barth Author almost 8 years ago03/06/14 at 9:37 am (UTC) Perfect. Thanks a ton! I'll let ya know if I encounter any more problems.

Sian Westcombe over 2 years ago09/07/19 at 10:39 pm (UTC) This is a very old post but I found exactly the answer I was looking for. Been trying to do this for a while but no luck. Thanks for the question and the answer

Leslie McKerchie Staff over 2 years ago09/09/19 at 12:43 pm (UTC) So glad that you were able to find what you needed here, Sian. Welcome to E-Learning Heroes!

## 4 Replies

Here is a quick example of toggling a True/false variable, which is then used to show/hide a layer. Hope that's what you wanted.

togglelayer_mh.storyPerfect. Thanks a ton!

I'll let ya know if I encounter any more problems.

This is a very old post but I found exactly the answer I was looking for. Been trying to do this for a while but no luck. Thanks for the question and the answer

So glad that you were able to find what you needed here, Sian.

Welcome to E-Learning Heroes!