AnimationEvent doesnt seem to work as documented

I have been trying to follow the documentation on AnimationEvent but none of the properties appear as the documentation specifies. ie get errors such as:


Assets/Project/Scripts/WeaponAnimation.cs(22,13): error CS1061: Type `AnimationEvent' does not contain a definition for `intParameter' and no extension method `intParameter' of type `AnimationEvent' could be found. Are you missing an assembly reference?

Tried the code exactly as the manual.

In my stupidity I had created a script with a class “AnimationEvent” that overode the built in assembly. Massive time waster on my part…