Function inside an LoadFrame?

Is it possible to use a function inside a onClipEvent (Load) handler on a MC?

I want the function to be called every time another movie clip is clicked.