You could also do an onComplete call to a function that will add to a counter variable that you can then access as nameOfArray[counter] for the Y parameter.
Of course, I have not used the "allTo" function. But this has worked for the regular "to" and "from" methods. Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Thu, Sep 9, 2010 at 3:02 PM, Merrill, Jason < jason.merr...@bankofamerica.com> wrote: > Nevermind, looks like you can only do that with the DynamicProps plug in > you have to buy with a Club Greensock membership. I'll roll my own with > the Timer class I guess unless someone knows of an easier way. > > > Jason Merrill > > Instructional Technology Architect > Bank of America Global Learning > > Join the Bank of America Flash Platform Community and visit our > Instructional Technology Design Blog > (Note: these resources are only available for Bank of America > associates) > > > > > > > -----Original Message----- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, > Jason > Sent: Thursday, September 09, 2010 2:43 PM > To: Flash Coders List > Subject: [Flashcoders] TweenMax.allTo() > > So in Greensock's TweenMax, you can tween and stagger (delay) the tweens > of multiple sprites at once, via giving a method like, "allTo" an array > of objects (in this example, _blockViews): > > TweenMax.allTo(_blockViews, 1, { alpha:1, y:150 }, .2); > > However, this assumes you want all the tweens to tween to the same > property value. What if I wanted all the objects to end up at various Y > locations instead of 150? As it is in the code above, they all tween to > y=150. Is there a way to provide an array of y locations that each > object moves to and have then staggered (as you can with the allTo() > method)? > > I can of course accomplish this by writing some Timer event code to > tween each object individually and accomplish what I want - ending up at > varying Y locations, but I'd rather not have to write all that code - > shouldn't there be a way to do this with TweenMax's sequencing > capabilities? Would this be a case where you would use TimelineMax and > append several tweens? If so, how would you also stagger them? > > > > Jason Merrill > > Instructional Technology Architect > Bank of America Global Learning > > Join the Bank of America Flash Platform Community > <http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx> and > visit our Instructional Technology Design Blog > <http://sharepoint.bankofamerica.com/sites/SDTeam/itdblog/default.aspx> > (Note: these resources are only available for Bank of America > associates) > > > > > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders