# \[AS3\]hitTestPoint problem

**URL:** <https://forum.kirupa.com/t/as3-hittestpoint-problem/324691>\
**Category:** Uncategorized\
**Created:** [September 3, 2011, 4:45pm UTC](https://forum.kirupa.com/t/as3-hittestpoint-problem/324691 "2011-09-03T16:45:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kestor](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kestor](https://forum.kirupa.com/u/kestor)\
**Post date:** [September 3, 2011, 4:45pm UTC](https://forum.kirupa.com/t/as3-hittestpoint-problem/324691/1 "2011-09-03T16:45:24Z")

</div>

Hello there.  
I have a problem with hitTestPoint in my class file.  
If i use this line “circle.circleknife.knife.hitTestPoint(enemy.x, enemy.y)” in my main timeline code, works without a problem.  
But if i use this “\_r.circle.circleknife.knife.hitTestPoint(this.x, this.y)” which is the same thing basicly, it wont work. If i hit CTRL-ENTER and my knife touches the enemy, nothing happens, not even an error or something.  
The “\_r” comes from display object root so i can use objects from class files.

PS: The “hitTestObject” works on both class file and main timeline no problem.
