Exit function

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?