Can you explain how to correctly do the following?
I want to fade in an array and animate them, and fade them out as they come to the end, but my attempts to appendMultiple for the fade out seem to either overwrite the initial values, or is pre-appending them ? I'm stymied.
import com.greensock.*;
import com.greensock.easing.*;
import com.greensock.plugins.*;
TweenPlugin.activate([bezierPlugin]);
t1 = new TimelineMax();
var ballArr:Array = [ball1,ball2,ball3,ball4,ball5,ball6];
//fade in and animate, offset both by .25
//works great
t1.appendMultiple([TweenMax.allFrom(ballArr, .25, {_alpha:0}, .25),
TweenMax.allTo(ballArr, 1.5, {bezier:[{_x:515, _y:44}, {_x:485, _y:200}]}, .25)]);
// append an allTo() to the end of the timeline -- should place new tweens at the end of the timeline?
// doesn't work. Seems to overwrite initial values in the timeline, and the offset
var offsetVal = 3
t1.appendMultiple(TweenMax.allTo(ballArr, .25, {_alpha:0}, .25), offsetVal )
// or some variation of this
t1.appendMultiple([TweenMax.allTo(ballArr, .25, {_x:0}, .25)], offsetVal )