First person shooter problem

I have an enemy that pops out of cover at random intervals.

The code I am using currently for him being shot is

on (press) {
      this.gotoAndPlay("enemy1shot");
      enemy1.enabled = 0;  }  

The frame is labelled “enemy1shot” in the MC however it just seems to ignore the mouse click. This has been aggrivating me since I got home from work, all help will be appreciated.