Is there any way to get hitTest to work with a mask?

I am writing a game where players 'hit' a target when it is visible. The visibility is controlled by a mask.
My problem is that if you know where the target is when it's hidden you can still hit it.

thanks