A Quick Look At TimelineMax: Advanced Sequencing of TweenMax Tweens

by carl schooff on August 18, 2010 · View Comments

in GreenSock Tweening Platform Tips

This video walks you through a few uses of TimelineMax. It includes a brief overview and shows you a bit on controlling advanced sequences of animations for multiple movieclips.

I apologize for this video ending a few seconds short. I was literally one second away from youtube’s limit. Typically I like to start with a bigger overview of the features but wanted to strictly answer a reader’s question and provide some explanation.

There is so much to cover but the resources below should help as well.

As promised here are the files for you to download:
SNORKL_timelinemax_samples Flash CS3 : 1.3MB

I strongly recommend watching: the full Greensock Overview Video of TimelineMax
And experiment with the Interactive TimelineMax Demonstration Tool

Don’t forget to leave your questions and comments below. Let me know how I can help!

Post to Twitter Post to Facebook

  • Seasickjavi

    jejeje thanks a lot Carl, with this you give me a hole comprengention of the concept for the TimeLineMax, guess I'm going to do a lot of animation exercises to master it, thanks again for share the most value thing and that is. “knowledge”

  • http://www.snorkl.tv/ carl schooff

    no problem. I enjoyed helping you. I am very excited about TimelineMax. I have always avoided learning it myself, but now I'm glad I have a better understanding of it.

  • http://www.snorkl.tv/2011/03/tween-a-timelinelite-for-ultimate-sequencing-control-and-flexibillity/ Tween A TimelineLite for Ultimate Sequencing Control and Flexibillity

    [...] tutorial focuses on tweening a TimelineLite instance’s currentProgress and timeScale properties. I want to note that you can also tween [...]

  • the.slip

    Hi Carl. Your videos have been a tremendous help to me. Thank you so much!

    I do have one question that I haven’t been able to figure out. Using the cracked version of your code, were all items follow the same sequence one after another, I was curious how to stagger the objects so that the next box in the line up begins before the prior box finishes.

    In my situation I have three dots. I want each to fade in and out, but in a staggered way so that the second dot does not have to wait for the first to complete its entire sequence. Is this possible using your method?

    This is my example code:

    var dot_arr:Array = new Array (redDot,yellowDot,blueDot);var timeline:TimelineMax = new TimelineMax({repeat:-1});for (var key : String in dot_arr) {var mc : MovieClip = MovieClip (dot_arr[key]); timeline.append(TweenMax.from(mc, .3, {alpha:0})); timeline.append(TweenMax.to(mc, .3, {alpha:0}), .7);}

    Thanks again for your time and for all the great educational videos you have created.

  • http://www.snorkl.tv/ carl schooff

    the crack file as it is, doesn’t easily allow for overlap.
    what i would do there is, in my loop I would make a timeline for each box’s sequence, and then offset the insertion of each child timeline in the main timeline. don’t have time to work that out now.

    BUT this should solve your immediate problem:

    for(var key:String in boxes_arr){ var mc:MovieClip = MovieClip(boxes_arr[key]); timeline.append(TweenMax.from(mc, .5, {autoAlpha:0, repeat:1, yoyo:true}), -.5);}

    notice that -.5 at the end? that is an offset value that means but it .5 seconds BEFORE the previous tween ends.

    give it a whirl.

    Best,

    Carl

  • the.slip

    This is exactly what I was looking for. Thanks for your help and for replying so quickly! You should really set up a donations page ;)

  • http://www.snorkl.tv/ carl schooff

    your welcome. thx for the idea. i’ve always been on the fence about that.
    but if you insist…
    ;)
    -c

  • Matt

    Hi Carl, thanks for great tutorials! I am facing little problem. I have this code:
    var mainArray:Array= [amcMC, tantrumMC, blokMC, misMC, futMC, laoMC, cauMC, deepMC, plusMC, noMC, copMC ];bg1MC.mask=maska1MC;//bg2MC.mask=maska2MC;var timeline:TimelineMax = new TimelineMax({repeat:-1});timeline.appendMultiple( [TweenLite.to( zatmivackaMC, 5, {alpha:0, ease:Back.easeOut} ),  TweenMax.from(dat1MC,0.5,{x:-250, y:-110, delay:-1.5, rotation:-120,blurFilter:{blurX:20}, ease:Back.easeOut}),  TweenMax.from(dat2MC,0.5,{x:900, y:-110, delay:-0.3, rotation:120,blurFilter:{blurX:20}, ease:Back.easeOut}),                     TweenLite.to( maska1MC, 4, {x:-1400,delay:-1,  ease:Back.easeOut})], 0, TweenAlign.SEQUENCE,0); for(var key:String in mainArray){ var mcMain:MovieClip = MovieClip(mainArray[key]); timeline.append(TweenMax.from(mcMain,cas,{x:pocatekX, y: pocatekY, scaleX:0.1, blurFilter:{blurX:20}, ease:Back.easeOut})); timeline.append(TweenMax.to(mcMain,cas,{x:pocatekX, y: pocatekY, delay:jeVidet, blurFilter:{blurX:20}, ease:Back.easeOut})); trace(mcMain.name); }

    problem is, I dont know how to influence time gap between first appendMultiple and others in loop. Time between is too long.

    Thanks for any help ;)

  • matt

    Well.. here was problem:
    zatmivackaMC, 5, {alpha:0, ease:Back.easeOut} 

    in ease style.. in linear.normal, everything is ok :)

blog comments powered by Disqus

Previous post:

Next post: