[Golist] Go has Sequencing already

Moses Gunesch moses at goasap.org
Fri Jan 4 09:06:02 PST 2008


Hey, this is copied from a post to FlashCodersNY –

Sequencing is in Go already and works... meaning, anyone can build  
Fuse 3 themselves very easily now, if that's your favorite syntax...  
or invent your own.

It's basically just a Sequence class composed of SequenceStep  
instances, which can be one or more animation items, like tweens. It  
has the methods addStep, addStepAt, removeStepAt, getStep, and  
getStepByID, plus the standard play controls.

Of those, addStep is the most basic and includes a second parameter,  
addToLastStep, that groups the item added with the previous step.  
Properties include steps (the sequence array), length, state,  
playIndex, and some handy getters, currentStep and lastStep.

var s:Sequence = new Sequence();
s.addStep(myTween1);
s.addStep(myTween2, true); // the 2nd param is addToLastStep, groups  
with previous add.
s.addStep(myTween3);
s.addEventListener(GoEvent.COMPLETE, onSequenceDone);
s.start();

So over all sequencing in Go is pretty straightforward, but you still  
have to design & build your own tweens to run.

There's a sample sequence included in the FLA's at the googlecode  
page. (see: http://www.goasap.org/)

Moses

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080104/0bf7d587/attachment.html 


More information about the GoList mailing list