Hi,
I'm currently trying to yoyo a movieclip to give the effect of hovering. However, I'm getting a strange stutter with the looping animation. If you watch the loop it will eventually jump down, almost like its resetting.
Here is an example:
http://dl.dropbox.com/u/1345489/Ball_Hover.html
I'm using CS5 - AS2 and FP8
There is a single movieclip on the stage with the instance name 'ball1'. The ball is a simple circle drawn in flash.
Here is the code:
import com.greensock.*;
import com.greensock.plugins.*;
import com.greensock.easing.*;
TweenMax.to (ball1, 1.5, {_y:125, ease:Back.easeOut, onComplete:hover, onCompleteParams:[ball1]});
function hover (clip:MovieClip):Void
{
TweenMax.to (ball1, .9, {_y:ball1._y - 8, ease:Sine.easeInOut, yoyo:true, repeat:20});
}
I've been using TweenMax for a couple years now and haven't run into this before so I'm not sure if I'm doing something wrong. Any help would be greatly appreciated. Thanks!