# hitTest help

**URL:** <https://forum.kirupa.com/t/hittest-help/208254>\
**Category:** Uncategorized\
**Created:** [November 27, 2006, 1:02am UTC](https://forum.kirupa.com/t/hittest-help/208254 "2006-11-27T01:02:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cnboy0212](https://avatars.discourse-cdn.com/v4/letter/c/bc79bd/32.png) [@cnboy0212](https://forum.kirupa.com/u/cnboy0212)\
**Post date:** [November 27, 2006, 1:02am UTC](https://forum.kirupa.com/t/hittest-help/208254/1 "2006-11-27T01:02:55Z")

</div>

i tried the hitTest thing on a movie clip and on the frame,the one one movie clip work but not on the frame,here are my codes:

for movie clip:

onClipEvent(enterFrame){  
if(\_root.box.hitTest(\_root.circle)){  
trace(“hitting”);  
}  
}

for the Frame:

function hittest(){  
if(\_root.box.hitTest(\_root.circle)){  
trace(“hitting”);  
}  
}  
hittest();

any idea?
