Jump to content


remove single Tween from TweenMax.allTo

Moderator Tag

Recommended Posts

I have set a TimelineMax var and inside of this I create Tweens with an array of MovieClips.


It works fine, so far. But I need to avoid the first MovieClip in the array on the reverse.


So far I can't find a solution. Any Idea ?



Link to comment
Share on other sites

Using v12 you can accomplish that like this:


import com.greensock.*;

var mcs = [mc, mc2];

var tl = new TimelineLite({onComplete:reverse});

//after staggerTo completes call the kill function and pass in the first item in the array
tl.staggerTo(mcs, 1, {x:200}, 0.5, 0, kill, [mcs[0]]);

function kill(target) {

function reverse() {

I see now you are using TimelineMax, so you won't need an onComplete callback to reverse the timeline.



staggerTo() replaces allTo() in v12. In v12 staggerTo() is a TimelineLite method which allows you to put staggered animations into a timeline without adding or appending a TweenMax tween.

CS5 fla attached, please download v12 here: http://greensock.com/download?version=GSAP-AS3





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