[Golist] sequencing through a set of tweens...

Jud Holliday judh at ZAAZ.com
Thu Jun 19 08:32:10 PDT 2008


So then you would control timing using the advance property? Yep, that's probably the better way in that it doesn't require any extra classes. Maybe a bit more verbose, but still pretty easy.

So the previous code example would be changed to look something like this:

var column1Seq:SequenceCA = new SequenceCA();
column1Seq.addStep(new YourTween());
column1Seq.addStep(new YourTween());

var column2Seq:SequenceCA = new SequenceCA();
column2Seq.addStep(new YourTween());
column2Seq.addStep(new YourTween());

var column3Seq:SequenceCA = new SequenceCA();
column3Seq.addStep(new YourTween());
column3Seq.addStep(new YourTween());


var controlSeq:SequenceCA = new SequenceCA();

controlSeq.addStep( column1Seq );
//advances after .5 secs
controlSeq.lastStep.advance = new OnDurationComplete(.5);

controlSeq.addStep( column2Seq );
//advances after column2Seq is done playing
controlSeq.lastStep.advance = new OnEventComplete(column2Seq, GoEvent.COMPLETE);

controlSeq.addStep( column3Seq );
controlSeq.start();





-Jud

From: golist-bounces at goasap.org [mailto:golist-bounces at goasap.org] On Behalf Of Moses Gunesch
Sent: Thursday, June 19, 2008 12:23 AM
To: Mailing list for the Go ActionScript Animation Platform
Subject: Re: [Golist] sequencing through a set of tweens...

Why not just add the other sequence as a step?

(Sequences accept any IPlayable - groups, sequences, tweens etc. - as steps.)

moses

On Jun 18, 2008, at 2:03 PM, Cadete B7 wrote:


yes!!!  that's exactly what i'm looking for...

i'll check it out.  thanks.

- Wilbur

On Jun 18, 2008, at 3:49 PM, Jud Holliday wrote:


Are you saying you have a number of Sequences created and you want to start them in a particular order/offset? In other words create a sequence to play your sequences?

_______________________________________________
GoList mailing list
GoList at goasap.org<mailto:GoList at goasap.org>
http://goasap.org/mailman/listinfo/golist_goasap.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080619/dd9af514/attachment-0001.html 


More information about the GoList mailing list