Hey, I was trying to make a flash game where a gun cursor hits an enemy.....

I got the cursor to move around the screen with the mouse by using:

but I could not find a code or a tutorial online that would show me a code to make the cursor hit my enemy by clicking.

If anyone could help me it'd be great