[Golist] HydroTween Sequence Callbacks and Fix

donovan at hydrotik.com donovan at hydrotik.com
Tue Jun 10 15:57:26 PDT 2008


Hi Dana, no problem contacting me directly. You can also post to the GO
list. More then likely I will respond, although it's possible you might get
an answer faster:)

Turns out you found a little bug in the callback sequencing!

I made the fix to the typo and uploaded the change to the SVN on go
playground. I also updated the FlashBelt Presentation source download.

You can add the object property "func":

var seqOver : SequenceCA = HydroTween.parseSequence(                    [
{target:bg, width:300, brightness:-.5, duration:ANIMATION_TIME,
easing:EASING},                        {target:arrow, alpha:1, x:40,
duration:ANIMATION_TIME, easing:EASING},                        {target:tf,
x:50, alpha:1, duration:ANIMATION_TIME, easing:EASING},
{target:item, alpha:1, scaleX:1.2, scaleY:1.2, y:_posArray[i],
duration:ANIMATION_TIME, easing:EASING,
func:function():void{trace("Done");}}
]                );

seqOver.start();

This might not be the greatest example since we are using an array of
sequence objects which are being triggered at once, but you still get the
idea.


I posted this to the list to update them on the fix as well as include the
reference.

This is another thing I will add to the upcoming documentation. I also plan
on adding a more user friendly object property for passing arguments instead
of using a nested closure.


Thanks again!


On 6/10/08 1:57 PM, "Dana Roberts" <DRoberts at tractioncreative.com> wrote:

> Hello, 
> 
> I have a question about HydroTween and am not sure if I should be emailing
> you or if there is a better place to post questions?  Let me know if there
> is a forum or something that is better for these types of questions.
> 
> Is there a way to add a callback within an animation sequence?
> 
> Thanks
> 
> Dana Roberts
> ttdsroberts at hotmail.com
> 

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


More information about the GoList mailing list