Where did you get stuck? The JS syntax is really straightforward -
function TestFunc(sprite : tk2dAnimatedSprite, clip : tk2dSpriteAnimationClip, frame : tk2dSpriteAnimationFrame, frameNum : int)
{
Debug.Log("Hello");
}
function TestComplete(sprite : tk2dAnimatedSprite, clipId : int) {
Debug.Log("Complete");
}
// elsewhere in your code, maybe in Start
animSprite.animationEventDelegate = TestFunc;
animSprite.animationCompleteDelegate = TestComplete;