[Golist] addAsynchronousAction??

Moses Gunesch moses at goasap.org
Sat Mar 14 16:06:07 PDT 2009


Yeah, you're right -- addStepAt() should return int, but addStep()  
should return the last step added, which more closely mirrors the  
familiar addChild/addChildAt from the DisplayObject class.

Good suggestion!

As far as OnDurationComplete(0) goes, that seems like overkill if you  
look in that class, there's a lot going on in there.

Try making a new custom advance type like Immediate that does nothing  
but call dispatchAdvance at start. If it works mabye we'll toss that  
into the Go core package.

m



On Mar 12, 2009, at 2:11 PM, Gil Birman wrote:

> btw, it's too bad we can't do...
>
> seq.addStep( ... ).advance = new OnDurationComplete(0);
>
> ... I assume there's a good reason for this ??...
>
> On Thu, Mar 12, 2009 at 12:40 PM, Gil Birman  
> <gil at allflashwebsite.com> wrote:
> GoASAP can already do pretty much the same thing with SequenceCA.
>
>
> seq.addStep( ... );
> seq.lastStep.advance = new OnDurationComplete(0);
>
>
> ... It takes 2 lines of code, but I have made it easier by creating  
> a really simple subclass of SequenceCA
>
>
> _______________________________________________
> 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/20090314/bb3c5146/attachment.html>


More information about the GoList mailing list