Share Posted October 28, 2009 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 More sharing options...
Author Share Posted October 28, 2009 I tried yoyo:true also and that still doesnt work Link to comment Share on other sites More sharing options...
Share Posted October 28, 2009 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. 2 Link to comment Share on other sites More sharing options...
Author Share Posted October 28, 2009 Thanks Jack. That worked. Link to comment Share on other sites More sharing options...
Author Share Posted October 28, 2009 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 More sharing options...
Author Share Posted October 28, 2009 nevermind..I have to activate the plugin now.. Link to comment Share on other sites More sharing options...
Share Posted October 28, 2009 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 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