# onMotionFinished

**URL:** <https://forum.kirupa.com/t/onmotionfinished/180706>\
**Category:** Uncategorized\
**Created:** [March 2, 2006, 10:07pm UTC](https://forum.kirupa.com/t/onmotionfinished/180706 "2006-03-02T22:07:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joene](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@joene](https://forum.kirupa.com/u/joene)\
**Post date:** [March 2, 2006, 10:07pm UTC](https://forum.kirupa.com/t/onmotionfinished/180706/1 "2006-03-02T22:07:40Z")

</div>

Hi there,

I seem to have used a rather odd-working onMotionFinished handler. When I trace something inside it, it works fine. But when I call another function, nothing happens. Any ideas?

```
ActionScript Code:
[FONT=Courier New][LEFT]t.[COLOR=#000080]onMotionFinished[/COLOR] = [COLOR=#000000] **function** [/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"hooah"[/COLOR][COLOR=#000000])[/COLOR]; [COLOR=#808080]*// works fine*[/COLOR]

```

[COLOR=#000000]}[/COLOR]

but!

t.[COLOR=#000080]onMotionFinished[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
anotherFunctionCOLOR=#000000[/COLOR]; [COLOR=#808080]_// doesn’t do anything_[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]
