Jump to content
Search Community

Yoyo stutter

mrkantz test
Moderator Tag

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...