Key release trigger

Mar 01, 2016

Is there a way to change a variable (or state) based on a key release? Or to reset a trigger from a key release?

10 Replies
Leslie McKerchie

Hi Cary!

I have not seen a question like this before and my search returns nothing beneficial. I know there is not a built in option, but not sure if you have options with coding. Hopefully someone will be able to pop in and assist.

What is the need that you have for this functionality - are you just wanting a secondary trigger after the user releases something pressed for a previous trigger? Just curious.

Scott Wiley

I was trying to do a variation of the parallax view as seen here: https://www.youtube.com/watch?v=9HIA38oAtT4

Originally, I intended for the action to take place while an arrow key was down. But there isn't a key up trigger available.

I ended up using the right and left arrow keys to start counting a slider variable up or down, ping ponging between two layers to keep counting going, which moved an image attached to the slider thumb button across the screen.

Without anything like an "onRelease" trigger, I had to add a trigger to the up and down arrow keys to stop the action.

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