Share Posted September 20, 2013 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 More sharing options...
Share Posted September 21, 2013 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) { TweenLite.killTweensOf(target); } function reverse() { tl.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 killFirstStaggerTo_CS5.fla.zip 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now