Stop animation and back to default location

“Stop animation and back to default location”, example:

    function StopReload(){

if(reloading){

	animation.Rewind("Take 001");
	CurrentBullets = LastCurrentBullets;
	reloading = false;

}

}

Rewind not work correctly :confused:

use
http://unity3d.com/support/documentation/ScriptReference/AnimationState-speed.html

http://unity3d.com/support/documentation/ScriptReference/AnimationState-speed.html

function AnimationPlay(gameObj : GameObject, AnimationName : String)
{
gameObj.animation[AnimationName].speed=1.0;
gameObj.animation[AnimationName].time=0;
gameObj.animation.Play(AnimationName);
}

function AnimationReverse(gameObj : GameObject, AnimationName : String)
{
gameObj.animation[AnimationName].speed=-1.0;
gameObj.animation[AnimationName].time=gameObj.animation[AnimationName].length;
gameObj.animation.Play(AnimationName);
}