Animation of a specific GameObject doesn´t play

It´s a very simple script (on box1), which should play an animation of another object (box2). There is no error message, the animation simply doesn´t play.

Here is the script:

var box : GameObject;
var box01 : AnimationClip;

function Update () {
	if(Input.GetKeyDown("d")){
	animdirection();
	}
	if(Input.GetKeyDown("p")){
	box.animation.Play("box01");
//	animplay();
	}
}

Thanks in advance!

var box : GameObject;
var box01 : GameObject;

    function Update () {
    if(Input.GetKeyDown("d")){
    animdirection();
    }
    if(Input.GetKeyDown("p")){
    box.animation.Play(box01);
    // animplay();
    }
    }

remember the string :smiley: