Jump to content
Search Community

problem with yoyo() and restart()

kingmauri test
Moderator Tag

Recommended Posts

Hello!

 

Please look at this simple code:

 

import com.greensock.*;
import com.greensock.easing.*;
import com.easing.plugins.*;

OverwriteManager.init();

timeline = new TimelineMax({repeat:1, repeatDelay: 3,  yoyo: true, onComplete:nextStep});
timeline.append (TweenMax.to(mc,0.5,{_x: 400}))
//other tweens

function nextStep()
{
timeline.restart();
       //do some stuff
}

 

somehow the clip is flickering when the animation restarts. why that?

 

thx in advance.

Link to comment
Share on other sites

Great catch! Thanks for letting me know - I fixed that in the latest version which was just posted. If you're a Club GreenSock member, just log into your GreenSock account to get the latest version with all the bonus plugins (http://www.TweenLite.com. Sorry for any inconvenience that caused. Please let me know if the latest rev works well for you.

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...