Search the Community
Showing results for tags 'totalDuration'.
-
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?
-
Hi! Is it possible that the onComplete and totalDuration methods of TimelineMax doesn't work at all? version 12.1.5 I have nested TimelineMax instances all has totalDuration = 0, the nested onComplete callback functions doesn't get called. The main TimelineMax onComplete function is triggered immediately though. Or I missed something in the last few months.. Thank you. Gergely.
- 3 replies
-
- timelinemax
- oncomplete
-
(and 1 more)
Tagged with:
-
Hey. Is there an easy way to change the totalDuration of a child of a parent timeLine in a way that also changes the duration of that parent to fit? Right now, if I lower the child's totalDuration, a delay is added after it on the parent instead of shrinking the parent to fit. I can make a new Timeline every time I change child totalDurations and then add them to it, but I just want to know if there's a cleaner way I'm missing. Note: I'm changing a child's proportion towards the rest of the children, so changing the parent's scale or totalDuration will not work.
-
I'm pausing timelines with pause() and resuming them with resume(). However, is as if the timeline is dragged out when it resumes, and labels no longer line up with the tweens contained in the timeline. I've traced most of the properties, and the only ones that seem to be different are duration and totalDuration which are increased by the amount of time spent while the timeline was paused. The startTime does not change. Is this behavior normal? How can I make it so that my tweens and timelines are the right length and the labels line up after pausing and resuming? At the same time, I'm also calling TweenMax.pauseAll() and TweenMax.resumeAll(), could this be affecting the timelines(I did not give them any parent)? I'm using AS3 version 1.64 of the Tweening Platform v11. Thanks for any help.