How to change own state twice? How show and close layer from one button (firs and second click)

Sep 04, 2015

Hello!

I have two similar problems.
I have button1, by clicking on this button? the layer1 which must be opened, and again when you click on button1, layer1 must close. And so on, clicked -> opened again clicked ->shut.

How to do it?

How to change the state of the button when clicked multiple times?I clicked once the state has changed from 1 to 2, clicked once again the state has changed from 2 to 1.

How i can do it?

5 Replies
Christie Pollick

Hi, Alexandr -- Thanks for your question! If you are looking for design ideas, you may want to share your file here so that others are able to take a look and make suggestions. Please use the ADD ATTACHMENT button in the bottom left corner of the reply box in the thread, and you can browse for the file from there. Please also note that if you reply via email, your attachment will not appear here in the thread. 

You are also welcome to post over in the Building Better Courses forum, as well. :)

Walt Hamilton

Show/Hide layer

The attached file only works if there is nothing on the layer that covers the button on the base. If something is covering it, you cannot click on it.

I put a rectangle on the layer, but since it has no fill, it does not cover the button.

Slide 2 shows a much easier method, but I think both methods look the same to the user.

 

Change button state

Slide 1 button changes state when clicked.

This discussion is closed. You can start a new discussion or contact Articulate Support.