Stopping the execution of functions

Can you help me stop the execution of a function. the function executes on “press” event. I cant stop it with on release. The function moves a movie clip via actionscript.