Topic: While pressed? / Set pivot point
Two questions:
1. Is there a way to do something only while pressed? I am making a tangram widget, where you rotate the chumby while pressing a piece to rotate the piece. Currently, I have a on(press) and an on(release) to say when to rotate a piece, but sometimes it will rotate off the mouse, and doesn't trigger a release, so it keeps rotating. Is there some way I can do while(press)?
2. Also, I was wondering if I could chage the "pivot point" of each shape to wherever the user touched when they press the shape, rather than the set place (the center).
Thanks