Jump to content


Yoyo action doesn't work?

Moderator Tag

Recommended Posts



The following code doesn't show any error but the Yoyo action also not working. The following is the code:


TweenMax.fromTo(Main_Logo, 6, {rotation:0, x:-300, y:-125, alpha:0}, {rotation:"-360", x:400, y:125, alpha:1, delay:12, yoyo:true, ease:Strong.easeOut});


But for the following code with less options works great:


var FooterTween:TweenMax = new TweenMax(Content_mc.Introduction.Footer, 5, {y:435, repeat:1, yoyo:true});


Where I did the mistake?



Link to comment
Share on other sites

You forgot repeat:1 (or however many times you want it to repeat). Remember, yoyo simply controls HOW the repeat behaves. So if there's no repeating, you'll never see it yoyo.

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.