Strings and animation

Can animation be used with strings? my vars are

public var isSprinting : boolean;

public var sprintAnime : Animation;

public var sprintString : String;

I want the sprintString to be sprintAnime string but i don’t know exactly how to do this , please help me

Well, no, obviously. This is a bit of a ‘square peg, round hole’ thing. Unless you mean ‘sprintAnime.name’.