# Hittest help!

**URL:** <https://forum.kirupa.com/t/hittest-help/321214>\
**Category:** Uncategorized\
**Created:** [April 13, 2011, 2:39pm UTC](https://forum.kirupa.com/t/hittest-help/321214 "2011-04-13T14:39:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beatsdawill](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@beatsdawill](https://forum.kirupa.com/u/beatsdawill)\
**Post date:** [April 13, 2011, 2:39pm UTC](https://forum.kirupa.com/t/hittest-help/321214/1 "2011-04-13T14:39:56Z")

</div>

Hello guys, I have a question is there a way to code a hittest so that if it touches the object say 5 times then it does what is suppose to?

Example:

```
                          if(this.hitTestObject(apple))
	      {
			removeEventListener(Event.ENTER_FRAME,update);
			parent.removeChild(this);
			apple.y=600;
			apple_mc.y= 1000;
		}
```
