[SOLVED]How do i use animation events?

I’m reading the documentation about animation events, and finding it confusing http://docs.unity3d.com/Manual/animeditor-AnimationEvents.html

The whole idea of setting a function to be called doesn’t seem to make sense to me. I’m setting this in an asset, which is basiucally a global scope. Yet i can choose any individual object in the scene or asset to trigger it on? I don’t understand

the interface seems to have changed with unity 5, and that documentation page is largely useless anyway. Can anyone explain animation events from scratch ?

nevermind, i watched the unity tutorial on the subject http://unity3d.com/learn/tutorials/modules/beginner/animation/animation-curves-events