Jump to content
Search Community

Difference between progress and totalProgress

moxol test
Moderator Tag

Recommended Posts

Can you explain me what is the difference between progress, totalProgress, duration, totalDuration, time, totalTime methods?

 

Is this a good way to complete timeline while it's playing?

 

timeline.seek(timeline.totalDuration());

Link to comment
Share on other sites

When you see the word "total" included it means the value includes repeats and repeatDelays

 

var tl:TimelineLineMax({repeat:1, repeatDelay:1})
tl.append(TweenLite.to(mc, 1, {x:100});

trace( tl.duration() ) // 1
trace( tl.totalDuration() ) // 3

 

 

to complete the timeline what you are doing is fine, but this will work too:

 

timeline.totalProgress(1)

 

I'm having a tough time thinking of a way to explain these methods better than the documentation already does: http://api.greensock...imelineMax.html

 

Is there something more specific that you need help with understanding?

  • Like 1
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...