Disabling mouse click

Is there a way to make the swf file ignore every mouse click until told to stop ignoring it.

Basically I want it so that when the ammo = 0 then it will ignore the mouse stopping the player from firing. When the player presses “r” to reload it plays the animation then stops ignoring the mouse so the player may start firing again.