Hi all. My Java/Coffeescript chops are still fairly light and I'm looking for advice.
I have created a knob that can be rotated (doing this by dragging a hidden layer which updates the knobs .rotation).
Whenever the knob has moved 45 degrees forward, I'd like it to change a state of a layer. I can do this 'hard coded' and call a method, but really I'd like to have a method that listens for a change and then causes an event i.e.
when knob moves 45 degrees from the last time it did, raise a flag method listens for the flag to be raised (or a variable to be updated) method switches state of layer.