Using onMotionFinished with Zigo tween

Hi all,

Can anyone point me to the right way of using the onMotionFinished function with a Zigo tween. I am trying to call a function at the end of a tween and haven’t been able to make it work using how it does in the flash tween.


mailwindow.tween("_alpha", 0, 1, "Strong.easeIn");

mailwindow.tween.onMotionFinished = function() {
//do something
}

OR

var tweenHandler = mailwindow.tween;
tweenHandler.onMotionFinished = function() {
//do something
}


Neither of them worked. :frowning:

Thanks.