After MovieClip ends do function?

Is there a way when a movieClip ends or onComplete, will then call a function?

myAnim:play{ startFrame=1, endFrame=21, loop = 1, remove=true, onComplete=StandingStill }  

or something like:

if phase == "ended" then --do something end [import]uid: 7197 topic_id: 9623 reply_id: 309623[/import]