# onMotionFinished and function calls

**URL:** <https://forum.kirupa.com/t/onmotionfinished-and-function-calls/204380>\
**Category:** flash\
**Created:** [October 19, 2006, 11:22am UTC](https://forum.kirupa.com/t/onmotionfinished-and-function-calls/204380 "2006-10-19T11:22:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liquidFusion](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@liquidFusion](https://forum.kirupa.com/u/liquidFusion)\
**Post date:** [October 19, 2006, 11:22am UTC](https://forum.kirupa.com/t/onmotionfinished-and-function-calls/204380/1 "2006-10-19T11:22:05Z")

</div>

Hi there.

Can I make function calls from within the onMotionFinished scope? See example belowe. Also tried by using the Delegate class…

var a\_handler:Object = new Tween(params);  
a\_handler.onMotionFinished = function(){  
test();  
}

var test:Function = function():Void {  
trace(“hello”);  
}
