Hi,
Ive been using the Tweenlite and TweenMax for a while now.
I notice sometimes (mostly on rotations) where a tween will not fully complete. Here is some example code:
TweenLite.to(this.cellArr[0], 0.5, {scaleX:1.1, scaleY:1.1, rotation: 360, delay:0.8});
TweenLite.to(this.cellArr[1], 0.5, {scaleX:1.1, scaleY:1.1, rotation: 360, delay:0.8});
TweenLite.to(this.cellArr[2], 0.5, {scaleX:1.1, scaleY:1.1, rotation: 360, delay:0.8, onComplete: this.animateCellsBack});
private function animateCellsBack():void {
TweenLite.to(this.cellArr[0], 0.75, {scaleX:1, scaleY:1, delay:0.75});
TweenLite.to(this.cellArr[1], 0.75, {scaleX:1, scaleY:1, delay:0.75});
TweenLite.to(this.cellArr[2], 0.75, {scaleX:1, scaleY:1, delay:0.75});
}
So as you can tell I want the "cells" to rotate and grow then go back to their original size.
What I noticed is that sometimes, and usually with the rotations, the tweens don't fully complete. And by fully complete I mean the onComplete is called fine but the tweening properties don't match what I asked TweenLite/Max to do. In one situation I just recently had the cellArr[1] (the middle cell or second call here) still had about 45 degrees of rotation left, so it was diagonal yet the other ones were perfect. Is there a better way to write this? I notice this when I use both TweenMax and TweenLite actually. I love the libraries too!
Thanks
rhg