Jump to content
Search Community

timelineLite pause question

rkalexander1 test
Moderator Tag

Recommended Posts

I have a sequence of tweenLite tweens in timelineLite object. I have a pause and another button that resumes the timelineLite object. Is there a way to complete the current tween and then pause? And then continue with the next tween in the sequence when the resume button is pressed.

Link to comment
Share on other sites

You might want to look into using TimelineMax. That way, you could put labels at the start of each tween, for example, and then use the getLabelAfter() and tweenTo(), like this:

 

function onClick(e:Event):void {
   myTimeline.pause();
   myTimeline.tweenTo(myTimeline.getLabelAfter(myTimeline.currentTime));
}

 

Just one idea - there are probably several other ways to accomplish this sort of thing, but I believe this is the easiest way (at least the easiest for me to explain) :)

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...