Jump to content
GreenSock

rondog

TweenMax yoyo not working [SOLVED]

Moderator Tag

Recommended Posts

I have the latest version of TweenMax and yoyo stopped working for me:

for (var i:int = 0; i < buttons.length; i++)
{
var targ = getChildByName("btn" + i);
targ.id = i;
targ.buttonMode = true;
targ.useHandCursor = true;
targ.addEventListener(MouseEvent.CLICK, onClick);
TweenMax.to(targ, 0.5, {alpha:0.3, yoyo:0,ease:Linear.easeNone});
}

 

any idea why?

Link to comment
Share on other sites

I tried yoyo:true also and that still doesnt work

Link to comment
Share on other sites

yoyo works in conjunction with the "repeat" property and simply defines HOW the repeats occur. So you'd need to do something like this:

 

TweenMax.to(targ, 0.5, {alpha:0.3, repeat:2, yoyo:true,ease:Linear.easeNone});

 

Make repeat -1 to cause it to repeat infinitely.

  • Like 2
Link to comment
Share on other sites

rather than open another topic, hopefully somebody see's this. autoAlpha for TweenLite stopped working for me now too.

 

TweenLite.to(mc,1,{autoAlpha:0,ease:Expo.easeOut});

 

doesn't work.

Link to comment
Share on other sites

nevermind..I have to activate the plugin now..

Link to comment
Share on other sites

nevermind..I have to activate the plugin now..

 

Exactamundo. It's in the v11 notes. http://blog.greensock.com/v11/ (obviously you found it, but I put the link here for others)

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