mrkantz Posted March 10, 2011 Share Posted March 10, 2011 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! Link to comment Share on other sites More sharing options...
mrkantz Posted March 10, 2011 Author Share Posted March 10, 2011 Sorry, just realized the code is a little messy right now. I'm going to have multiple balls hovering, so that's why it's passing itself into the funciton for no apparent reason right now Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now