Sprite Manager animation completed

Hi there, I am having some trouble with this :
I play an animation, and i want to know which animation is played at the end, but GetCurAnim is giving me an error

Here some code to make this more clear

playerSprite.SetAnimCompleteDelegate( MyDelegate );
playerSprite.PlayAnim( 5 ) ; 

void MyDelegate(SpriteBase sprt )
{ 
//**Error
	//UVAnimation  xxx = sprt.GetCurAnim() ; 

        Debug.Log( sprt + " just finished playing its animation");
}

Any idea how can i get which animation is completed?

Cheers

Roberto

You should be more specific about the error you are getting.

Saves alot of guess work :stuck_out_tongue_winking_eye:

i was missing a cast

PackedSprite ps = (PackedSprite) sprite;
string nameAnim = ps.GetCurAnim().name ;