onMotionFinished

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]