lwmirkk

totalDuration() setter: This bug may be happening in HTML5 too

Recommended Posts

I want to extend the time of the timeline exactly in the current item, but without pausing, just extend the total duration.
When I use myTimeline.totalDuration ( myTimeline.totalDuration () + 10 ) not works.

 

The timeline continues with the current duration...

 

My example code:

trace(myTimeline.totalDuration()); //20

myTimeline.totalDuration( myTimeline.totalDuration() + 10 );

trace(myTimeline.totalDuration()); //20
//the final result should be 30... not?

 

Share this post


Link to post
Share on other sites

A timeline is just a wrapper for tweens (and other timelines), so its duration is always based on its contents. When you alter its duration, it simply alters the timeScale accordingly so that it APPEARS to take that long to play, that's all. Make sense?

  • Thanks 1

Share this post


Link to post
Share on other sites
48 minutes ago, GreenSock said:

A timeline is just a wrapper for tweens (and other timelines), so its duration is always based on its contents. When you alter its duration, it simply alters the timeScale accordingly so that it APPEARS to take that long to play, that's all. Make sense?

 

Hmm... understood. :)

 

Thanks a lot. :)

Share this post


Link to post
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.