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

Moses Gunesch moses at goasap.org
Thu Jun 19 11:07:18 PDT 2008


No, the advances should not be necessary. It's not that complicated. :-)

Sequences advance by listening for a COMPLETE or STOP event anyway. It  
doesn't matter if it is a child tween that fires that event or a child  
sequence, it will still advance.

So it should work to simply add sequences as steps. They will have  
start() called on them as the step starts and the parent will listen  
for their completion before advancing.

Make sense?

- m



On Jun 19, 2008, at 8:32 AM, Jud Holliday wrote:

> 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
> http://goasap.org/mailman/listinfo/golist_goasap.org
>
> _______________________________________________
> GoList mailing list
> 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/e99dac5c/attachment.html 


More information about the GoList mailing list