Double hit on an enemy?

hey guys
was wondering if someone can help me, atm i have a code when the enemy is hit it will gotoandplay hit frame label, and dissapear, now i want it to if it is hit, it will play an animation of it stop in pain then come attack again and then once hit for the second time, its dead this is my script so far
public function targetHit(o:Object):Void
{

if(!gameOver) {

o.clip.hit = true;

increaseScore(Number(o.clip.time.text));

o.clip.gotoAndPlay(“hit”); //animation of it getting hit first, stop in pain.

//(“hit2”)??? frame label, showing enemy die ?

}
}

any ideas???
cheers