Jump to content
Search Community

TimelineMax.addLabel() listener?

noiseisthis test
Moderator Tag

Recommended Posts

Absolutely - just use addCallback() to put a callback at that label.

 

yourTimeline.addCallback(yourFunction, "yourLabel");

 

http://api.greensock.com/as/com/greensock/TimelineMax.html#addCallback()

 

If you really need an event listener, you could insert a zero-duration TweenMax there that has a TweenEvent.COMPLETE listener added to it.

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.
×
×
  • Create New...