# Flash as2 RPG Attacking with mouse

**URL:** <https://forum.kirupa.com/t/flash-as2-rpg-attacking-with-mouse/330235>\
**Category:** flash\
**Created:** [December 17, 2012, 6:47am UTC](https://forum.kirupa.com/t/flash-as2-rpg-attacking-with-mouse/330235 "2012-12-17T06:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Scholz](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Jason\_Scholz](https://forum.kirupa.com/u/Jason_Scholz)\
**Post date:** [December 17, 2012, 6:47am UTC](https://forum.kirupa.com/t/flash-as2-rpg-attacking-with-mouse/330235/1 "2012-12-17T06:47:16Z")

</div>

Here is my issue. I have a enemy movieClip named enemy. I have a hp bar movieClip named hp. I am trying to click the enemy and deal damage. For example: I click the enemy his health goes down by 5.

How do I do this with as2? I have tried every piece of code except the right one and I know this isn’t THAT complicated. Thanks for the help!

Jason
