<HTML>
<HEAD>
<TITLE>HydroTween Sequence Callbacks and Fix</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>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:)<BR>
<BR>
Turns out you found a little bug in the callback sequencing!<BR>
<BR>
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.<BR>
<BR>
You can add the object property "func":<BR>
<BR>
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");}}
]
);<BR>
<BR>
seqOver.start();<BR>
<BR>
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.<BR>
<BR>
<BR>
I posted this to the list to update them on the fix as well as include the reference.<BR>
<BR>
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.<BR>
<BR>
<BR>
Thanks again!<BR>
<BR>
<BR>
On 6/10/08 1:57 PM, "Dana Roberts" <DRoberts@tractioncreative.com> wrote:<BR>
<BR>
<FONT COLOR="#0000FF">> Hello, <BR>
> <BR>
> I have a question about HydroTween and am not sure if I should be emailing<BR>
> you or if there is a better place to post questions? Let me know if there<BR>
> is a forum or something that is better for these types of questions.<BR>
> <BR>
> Is there a way to add a callback within an animation sequence?<BR>
> <BR>
> Thanks<BR>
> <BR>
> Dana Roberts<BR>
> ttdsroberts@hotmail.com<BR>
> <BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>