Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×