trace the current position of my rotating gear in GSAP (Flash) Posted January 28, 2018 Hi, I've got a gear that rotates each time I click on it : gear1.addEventListener(MouseEvent.CLICK, turn_gear1, false, 0, true); function turn_gear1(event:MouseEvent):void{ TweenLite.to(gear1, 1, { rotation: "+=10", ease: Linear.easeNone }); } Is there a way to trace the current position of the gear each time it has finish the rotation ? Cause I would like to trigger a function when the gear is in a specific position. Thanks for your help,
trace the current position of my rotating gear
in GSAP (Flash)
Posted
Hi,
I've got a gear that rotates each time I click on it :
Is there a way to trace the current position of the gear each time it has finish the rotation ? Cause I would like to trigger a function when the gear is in a specific position.
Thanks for your help,