Simple Mouse Click not working :( PLEASE HELP!!

anyone know why this doesnt work when i attach it to my 3D Object?

function OnMouseDown () {
    animation.Play("open");
}

works perfectly outside of the function

Attach a collider to the object

First question are u clicking on the object?

second does the object have any collider?

third did u check Unity - Scripting API: MonoBehaviour.OnMouseDown()

if u dont want to add collider and want the whole screen to act as a trigger u can use Unity - Scripting API: EventType.MouseDown
and Unity - Scripting API: Event

OMG YOU ROCK MY WORLD! CANT BELIEVE IT WAS THAT SIMPLE!! been looking for 2 days!!!