# Using onMotionFinished with Zigo tween

**URL:** https://forum.kirupa.com/t/using-onmotionfinished-with-zigo-tween/244120
**Category:** flash
**Created:** [November 14, 2007, 1:22pm UTC](https://forum.kirupa.com/t/using-onmotionfinished-with-zigo-tween/244120 "2007-11-14T13:22:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vega](https://avatars.discourse-cdn.com/v4/letter/v/b19c9b/32.png) [@vega](https://forum.kirupa.com/u/vega)
#### Post date: [November 14, 2007, 1:22pm UTC](https://forum.kirupa.com/t/using-onmotionfinished-with-zigo-tween/244120/1 "2007-11-14T13:22:41Z")

</div>

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.

```php

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. ☹

Thanks.
