komodo Posted January 17, 2011 Share Posted January 17, 2011 How do you delay the reverse of a tween? I don't see how to use delayedCall to delay a reverse. Link to comment Share on other sites More sharing options...
Carl Posted January 18, 2011 Share Posted January 18, 2011 using TweenMax you could do: TweenMax.to(box, 1, {x:100, repeat:1, repeatDelay:2, yoyo:true}); the box will move to an x of 100 immediately 2 seconds after the box moves it will move back to its original x if you don't use yoyo the tween will play once from origin x to 100 pause 2 seconds play again from origin x to 100 Link to comment Share on other sites More sharing options...
GreenSock Posted January 18, 2011 Share Posted January 18, 2011 Carl gave the best solution, but if you really want to use delayedCall(), you could do that like this: var tween:TweenMax = TweenMax.to(box, 1, {x:100}); TweenLite.delayedCall(3, tween.reverse); 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