Invincible while hiding

i have a problem here …

the hero hides with <down> key and attacks with <up> key but how do i script it such that the hero doesnt receive hits from the enemy while hiding?

heres the .fla
http://www.geocities.com/cloudstrife_infini/TrueEnemy.fla

any help would be appreciated, thanks!