Share Posted March 24, 2012 Often in a timeline sequence I'd like to simply call a function. The best way I've figured out to do this is using a delayedCall like: myTimelineLite.append(TweenLite.delayedCall(0, myFunction)); but is there a better way? This code works, but seems a little clunky. Link to comment Share on other sites More sharing options...
Share Posted March 24, 2012 With TimelineLite, yes. With TimelineMax you can use addCallback() http://www.greensock.com/as/docs/tween/com/greensock/TimelineMax.html#addCallback() in the upcoming v12 release of the GreenSock Animation Platform, TimelineLite will have some features that make this a lot less "clunky". 1 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