# Hittest error

**URL:** <https://forum.kirupa.com/t/hittest-error/307577>\
**Category:** flash\
**Created:** [April 6, 2010, 8:59am UTC](https://forum.kirupa.com/t/hittest-error/307577 "2010-04-06T08:59:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rensk](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rensk](https://forum.kirupa.com/u/rensk)\
**Post date:** [April 6, 2010, 8:59am UTC](https://forum.kirupa.com/t/hittest-error/307577/1 "2010-04-06T08:59:31Z")

</div>

i added this code but i get an error

function frameloop(evt:Event):void {  
if(gadgets.hitTestPoint(character.x,character.y)){  
character.rotation = -90;  
}  
}  
this is the error that i get:

TypeError: Error #1006: hitTestPoint is not a function.  
at catchgame\_fla::MainTimeline/frameloop()
