Jump to content
GreenSock

Infinite

TimelineLite: playTo() functionality?

Recommended Posts

I was curious if there is a built in way to tell TimelineMax or TimelineLite to play from one Label to another, IE. 

var myTimeline:TimelineLite = createMyTimeline();

// goal Play from One Label, to Another, then stop.
myTimeline.playTo( fromThisLabel, toThisLabel );

// but also support, playing whole timeline.
myTimeline.play( fromThisLabel );
Link to comment
Share on other sites

[solved]  :mrgreen:

 

Ahh... found it.  I need to use TimelineMax and the tweenFromTo() method.

var myTimeline:TimelineMax = createMyTimeline();

// goal Play from One Label, to Another, then stop.
myTimeline.tweenFromTo( fromThisLabel, toThisLabel );
  • Like 3
Link to comment
Share on other sites

Exactamundo. You beat me 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.
×