Multiple triggers for one button
Sep 11, 2013
By
Mrs. S
I have one button that I want to change color each time it is clicked (as well as bring up a new layer of text). I've triggered the button to change color the first time it is clicked and stay in the second color edited state. The problem is, I don't know how to get the second color edited stated button to turn into the third color and so on. Does this make any sense? I've seen many tutorials for triggers when there are multiple buttons, but what do you do when you want one button to do multiple actions?
4 Replies
This can be done by adding custom states to your button and then edit the colors for the states. Then add triggers that increase a variable every time the button is clicked. The add trigger that, based on the variable's value, change the button's states AND show the appropriate layer. Here is a quick example with one button and five colored states. Hope that helps.
Hi Mrs. S! It looks like Michael is taking care of you here, but I wanted to pop in and welcome you to E-Learning Heroes! Just let us know if you need anything further.
Hi Michael. Thank you so much for your help. This example is exactly what I need to see! You are a lifesaver!
Glad this helped you! Thanks for sharing an update!
This discussion is closed. You can start a new discussion or contact Articulate Support.