Closed danielsedlacek closed 7 years ago
A workaround: this is how you identify the last onChange event so that you can use it instead of the call function.
createjs.Tween.get(myShape,{onChange:update)})
.to({x : 100}, 2000, createjs.Ease.quartInOut).call(ended);
function update(evt) {
evt.target.duration == evt.target.position
}
This is expected behavior. The change
event is triggered after each tick is resolved, which includes both property updates and action execution. If you want to tie some code into the VERY end of the tween, then use the complete
event.
I've updated the documentation to make this more clear.
I understand. Once you update the documentation there should be no confusion. Thanks.
The docs for change
were updated to:
Dispatched whenever the tween's position changes. It occurs after all tweened properties are updated and actions are executed.
I have
one more update will be called after ended :(