# hitTest help

**URL:** https://forum.kirupa.com/t/hittest-help/127192
**Category:** Uncategorized
**Created:** [October 31, 2004, 3:42pm UTC](https://forum.kirupa.com/t/hittest-help/127192 "2004-10-31T15:42:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Emdiesse](https://avatars.discourse-cdn.com/v4/letter/e/c0e974/32.png) [@Emdiesse](https://forum.kirupa.com/u/Emdiesse)
#### Post date: [October 31, 2004, 3:42pm UTC](https://forum.kirupa.com/t/hittest-help/127192/1 "2004-10-31T15:42:44Z")

</div>

Hello.  
I have read numerous tutorials however i can never get hitTests to work.

I have a main **‘charactor’** that walks around and i want him to stop when he hits a **‘building’**. when he hits the building i also want a message to pop up in the **‘message box’** saying _“you need a key to enter here!”_ :D.

I have attatched my file.  
I have now added a FlashMX one aswell

Please could you add the actionscript needed for this to happen.  
I will read it through and ask if i don’t understand so i won’t need to bother you next time :D.

Thank You 😃  
Emdiesse
