[Golist] Hydrotween - callbacks problems

CyberPunK cyberpunk82 at gmail.com
Tue Jul 1 03:50:55 PDT 2008


Hi list,

i'm having some issues with the callbacks in Hydrotween.

First of all, let me say I've downloaded this morning the latest version of
both Hydrotween and GO from the SVN.

 

Here's how I'm setting up my tween:

public function testTween():void

{

      var intro:MovieClip = new WavesAnimationAsset() as MovieClip;

      

      intro.alpha = 0;

      

      addChild( intro );

                        

      HydroTween.go( intro, {alpha:1}, 1, 2, Sine.easeInOut, doComplete,
doUpdate );

      

      var doUpdate:Function = new Function ()

      {

            trace( "update", intro.alpha );

      }

      var doComplete:Function = new Function () 

      {

            trace( "complete", intro.alpha );

      }

}

 

The two callbacks, doUpdate and doComplete, are called immediately (even
before the delay) and (for the matters of onUpdate) just one time.

Don't know if it's a real bug or if it's related to the way I'm declaring
the functions for the callback or if the version of Hydrotween and GO that
I've took are incompatible . I'm still investigating the problem.

 

If you guys find out a solution before I do, let me know.

 

Thanks

Alex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://goasap.org/pipermail/golist_goasap.org/attachments/20080701/5579765d/attachment.html 


More information about the GoList mailing list