# Exit function

**URL:** <https://forum.kirupa.com/t/exit-function/155583>\
**Category:** Uncategorized\
**Created:** [July 18, 2005, 11:23pm UTC](https://forum.kirupa.com/t/exit-function/155583 "2005-07-18T23:23:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thinker2501](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Thinker2501](https://forum.kirupa.com/u/Thinker2501)\
**Post date:** [July 18, 2005, 11:23pm UTC](https://forum.kirupa.com/t/exit-function/155583/1 "2005-07-18T23:23:51Z")

</div>

I have a function using the tween class which works wonderfully. Is there any way to test when the tween has finished and to call the next function? or is there an onExit type command to use when a function closes?
