Closed danielsedlacek closed 7 years ago
There is currently no API for that. You can determine when a tween has finished by calling a method at the end of the chain:
createjs.Tween({x:0}).to({x:100}).call(handleComplete);
Or you could query the tween's duration
and position
any time. When they are equal, the tween should be complete.
var complete = (tween.position==tween.duration);
A boolean property is a good idea, so I will leave this issue open to track it!
I'm looking at changing setPaused
into a getter/setter, so you could query paused
. Tweens are automatically paused when they reach their end.
Would that meet your needs?
Added paused
. Closing this. Let me know if it doesn't do what you need.
Perfect. Thanks.
Surprisingly there is no simple isPlaying() : boolean method. Or am I missing something?