Hi guys,
I have a problem with The TweenMax.killAll(true) method. Here is my example:
TweenMax.to(targetQ, 2, {
scaleX : 2,
scaleY : 2,
reversed : true,
yoyo : true,
repeat : 1,
x : targetQ.x + (targetQ.width - 2 * targetQ.width) / 2,
y : targetQ.y + (targetQ.height - 2 * targetQ.height),
ease : Back.easeOut,
onReverseComplete : function onReverseComplete():void {
trace("complete this tween ;)");
}
} );
If you make a reversed tween, it's never call the onComplete function.
The tweenax documentation write this: "
onComplete : Function – A function that should be called when the tween has completed. To sense when a tween has reached its starting point again after having been reversed, use onReverseComplete."
If I call TweenMax.killAll(true), tween not killed!!!!!
As I see, the problem is in the killAll method.
Inside this, here's a line:
isDC = (a.target == a.vars.onComplete);
Unfortunately, if you set a reverse to a tween, onComplete callback ignored!
cheers,
jax