This was the code given from the example of on the /timelinemax directory on greensock.com
import com.greensock.*;
var timeline:TimelineMax = new TimelineMax({repeat:2, yoyo:true, repeatDelay:1.5});
timeline.append( TweenLite.from(blackBar, 0.8, {x:550}) );
timeline.insertMultiple( TweenMax.allFrom([logo, timelineWord, maxWord, byGreenSock], 0.5, {autoAlpha:0}, 0.25), 0.6);
timeline.insertMultiple( TweenMax.allFrom(lettersArray, 1, {y:"-30", alpha:0, ease:Elastic.easeOut}, 0.04), 1.4);
I'm curious how those letters tween by simply using lettersArray? I tried to recreate something similar but it doesn't work. I made 3 movie clips, letters "Y", "U", and "M" with the same instance names. I'm trying to learn how to use an array and sure I'm not doing it correctly. Any help would be appreciated.
Is there any full example of an array used with TweenMax?
var lettersArray = new Array("Y", "U", "M");
trace(lettersArray);
import com.greensock.*;
var timeline:TimelineMax = new TimelineMax({repeat:2, yoyo:true, repeatDelay:1.5});
timeline.insertMultiple( TweenMax.allFrom([lettersArray], 1, {_y:"-30", _alpha:0, ease:Elastic.easeOut}, 0.04), 1.4);