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

Jud Holliday judh at ZAAZ.com
Wed Jun 18 12:49:05 PDT 2008


Hi Wilbur,
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?

If that is what you are looking for, I think essentially what you are asking is how to call a function as one of the steps in a sequence. I actually created a class as part of the ZAAZ Go Library which allows for simple sequencing of function calls which you may be interested in. It is called CallbackTrigger. Below is an example. Maybe some other people will jump in with some other ideas of ways to approach it as well.

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();
//tells column1 sequence to start playing
controlSeq.addStep(new CallbackTrigger(column1Seq.start));
//tells column2 sequence to start playing after a delay of .5 seconds
controlSeq.addStep(new CallbackTrigger(column2Seq.start, .5), true);
//tells column3 sequence to start playing. Since we are not adding this
//to the last step it won't start until the first two steps are done
controlSeq.addStep(new CallbackTrigger(column2Seq.start));
controlSeq.start();

Hopefully I'm understanding your question. If not feel free to correct or clarify.

If you want to download or check out the class you can get it from the playground.
http://code.google.com/p/goplayground/downloads/list
or via SVN as well

Thanks,


-Jud

From: golist-bounces at goasap.org [mailto:golist-bounces at goasap.org] On Behalf Of Cadete B7
Sent: Wednesday, June 18, 2008 11:54 AM
To: Mailing list for the Go ActionScript Animation Platform
Subject: [Golist] sequencing through a set of tweens...

i'm new to go...  this is my first post...

if you wanted to tween a set of SequenceCA's, what would be a good way to go about it?
or tween the values in an array in general?

say for instance you had several columns comprised of stacks of colored bars...  each column is its own entity, with a list of tweens (one for each bar it contains)...  and you want to be able to play/pause/reset the tweens by creating one marionette-like tween.

seems like a simple problem, but i always feel like i'm taking an unnecessarily circuitous approach.

thanks,

- Wilbur

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080618/de5fe810/attachment.html 


More information about the GoList mailing list