Make button show as pressed through Javascript


(Connor Bright) #1

Is it possible to have javascript trigger whether a button shows the normal or pressed state? Thanks!


(Jonathan Deutsch) #2

No - if you want to do this you’ll need to setup your own states. You could use alternate timelines and then use the timeline APIs. (Buttons actually use timelines under-the-hood, but there’s no supported ways to access these).


#3

Bearing in mind pressed state is the act of “mouse down” on an element. Did you want something that toggles a state? i.e before “clicked” a certain color after “clicked” another color? (color not being important here just an example)