# hitTest problem in AS3

**URL:** <https://forum.kirupa.com/t/hittest-problem-in-as3/313145>\
**Category:** flash\
**Created:** [August 21, 2010, 5:16pm UTC](https://forum.kirupa.com/t/hittest-problem-in-as3/313145 "2010-08-21T17:16:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![melody\_doering](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@melody\_doering](https://forum.kirupa.com/u/melody_doering)\
**Post date:** [August 21, 2010, 5:16pm UTC](https://forum.kirupa.com/t/hittest-problem-in-as3/313145/1 "2010-08-21T17:16:56Z")

</div>

In detecting a collision (coins into a pay slot) using either hitTestObject() or hitTestPoint(), after the first collision, the Object/Point becomes mouseEnabled and buttonMode=true. This means that by clicking on the Object/Point the user does not have to “deposit” a coin to make a selection.

I have tried resetting the buttonMode and mouseEnabled to false, with no effect. The coins are dynamically generated, if it makes any difference.
