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

Moses Gunesch moses at goasap.org
Thu Jun 19 11:46:27 PDT 2008


That's an interesting idea for sure. You could extend SequenceAdvance  
to create a class like onPositionReached.

:-)

On Jun 19, 2008, at 11:44 AM, Cadete B7 wrote:

> ah, yes...  all very illuminating.  i think i'm starting to get the  
> idea...  but instead of using onDurationComplete i was thinking i'd  
> use the controller's _position value as the trigger...  that way i  
> could use the controller's easing function to trigger the start of  
> each SequenceCA...  does that make sense?  i was thinking i could  
> use this to not only trigger animation sequences but to cycle  
> through data trees too (not sure why yet).
>
> - Wilbur
>
> On Jun 19, 2008, at 2:13 PM, Jud Holliday wrote:
>
>> Ah, cool. That makes sense for a normal complete event. I think  
>> Wilbur was initially looking for a way to control the timing of the  
>> sequences though, in which case I think you would still want to use  
>> an OnDurationComplete.
>>
>>
>> -Jud
>>
>> From: golist-bounces at goasap.org [mailto:golist-bounces at goasap.org]  
>> On Behalf Of Moses Gunesch
>> Sent: Thursday, June 19, 2008 11:07 AM
>> To: Mailing list for the Go ActionScript Animation Platform
>> Subject: Re: [Golist] sequencing through a set of tweens...
>>
>> 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
>>
>> _______________________________________________
>> 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/8ca22f4c/attachment-0001.html 


More information about the GoList mailing list