Hello
I'm trying to tween a value of an object like this:
var _obj = {v:0};
TweenMax.to(_obj, 1, {v:100, ease: Linear.easeNone, onUpdate:onTweenUpdate})
}
function onTweenUpdate ()
{
console.log(_obj.v)
}
This works fine but what it actually needs are rounded values. I thought "roundProps" would come in handy but the following change causes an error in TweenMax.js:
TweenMax.to(_obj, 1, {v:100, roundProps:"v", ease: Linear.easeNone, onUpdate:onTweenUpdate})
Is this code wrong or does "roundProps" not work that way?
What I actually would like to do with it is tweening the "currentAnimationFrame" of an EaselJS BitmapAnimation.
I used the "onTweenUpdate" function from the example above together with Math.round() as a workaround. But it would be much nicer to tween the currentAnimationFrame directly.
Any ideas anyone?
Cheers
Henry