Problem: Button State Changing Without a Trigger

Apr 24, 2014

I have created a button to open a layer. I have specified three states for the button: normal, hover and active. The default state is normal. I have created triggers for the button to change its state

  • to hover when the mouse hovers over it (returning to normal when the mouse leaves it) and 
  • to active when the user clicks the button. 
The button state changes to active when I click the button. However, as soon as the mouse leaves the button after it has been clicked, the button reverts to the normal state. How can I make the button stay in the active state until the user does something which invokes another trigger?
4 Replies
Steve Flowers

Hi Ted,

Try using the built-in state behavior of Selected. Unfortunately, this will toggle back off if it's not part of a button set. So to make this trick work, I create another object off of the stage and add it to a button group. This way, the object will not deactivate the selected state unless I want it to. 

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