CreateJS / TweenJS

A simple but powerful tweening / animation library for Javascript. Part of the CreateJS suite of libraries.
http://createjs.com/
MIT License
3.56k stars 967 forks source link

bug duration=0 #16

Closed im007boy closed 11 years ago

im007boy commented 11 years ago

tw = createjs.Tween.get(circle,{loop:false, onChange: function(){ console.log(tw.position); }}).to({x:300,y:0},1000,createjs.Ease.bounceOut) // tween to scaleX/Y of 1 with ease bounce out .call(function(){ setTimeout(function(){ //doesn't run tw.to({y: 10}, 0).setPaused(false).call(function(){ console.log('finish 0') }); },500); });

http://jsfiddle.net/im007boy/6uRMY/5/

lannymcnie commented 11 years ago

Please post issues like this on the community site, community.createjs.com

I have modified your fiddle to work properly. Using the setInterval like you did is unnecessary. Check out http://jsfiddle.net/6uRMY/6/

The issue you are seeing in your version though is interesting, and we will look at the possible reason for it.