in your enterFrame function, use:
Actionscript Code:
if(this.invincible)this.invincible--;