greensock / GreenSock-AS3

Public repository for GreenSock's ActionScript 3 libraries like GSAP (TweenLite, TweenMax, etc.) and LoaderMax. For AS2, see the GreenSock-AS2 repository and for JavaScript, see the GreenSock-JS repository. Main site: http://www.greensock.com
410 stars 145 forks source link

onTick quick settings #8

Closed nuthinking closed 10 years ago

nuthinking commented 10 years ago

Is there any particular reason why this is not possible?

TweenLite.to(view, 1, { y:newY, onTick: function (): void { trace("TICK"); }});

The alternative would be to add the listener to the global ticker before and remove it at complete. A bit verbose.

Thanks!

jackdoyle commented 10 years ago

There's no such thing as "onTick" - I think you meant "onUpdate" :)

nuthinking commented 10 years ago

ops, yes, that will make it! Thanks! ;)