<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 &quot;func&quot;:<BR>
<BR>
var seqOver : SequenceCA = HydroTween.parseSequence(
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{target:bg, width:300, brightness:-.5, duration:ANIMATION_TIME, easing:EASING},
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{target:arrow, alpha:1, x:40, duration:ANIMATION_TIME, easing:EASING},
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{target:tf, x:50, alpha:1, duration:ANIMATION_TIME, easing:EASING},
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{target:item, alpha:1, scaleX:1.2, scaleY:1.2, y:_posArray[i], duration:ANIMATION_TIME, easing:EASING, func:function():void{trace(&quot;Done&quot;);}}
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<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, &quot;Dana Roberts&quot; &lt;DRoberts@tractioncreative.com&gt; wrote:<BR>
<BR>
<FONT COLOR="#0000FF">&gt; Hello, <BR>
&gt; <BR>
&gt; I have a question about HydroTween and am not sure if I should be emailing<BR>
&gt; you or if there is a better place to post questions? &nbsp;Let me know if there<BR>
&gt; is a forum or something that is better for these types of questions.<BR>
&gt; <BR>
&gt; Is there a way to add a callback within an animation sequence?<BR>
&gt; <BR>
&gt; Thanks<BR>
&gt; <BR>
&gt; Dana Roberts<BR>
&gt; ttdsroberts@hotmail.com<BR>
&gt; <BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>