# hitTest Creating Text

**URL:** https://forum.kirupa.com/t/hittest-creating-text/33385
**Category:** flash
**Created:** [October 18, 2003, 5:39pm UTC](https://forum.kirupa.com/t/hittest-creating-text/33385 "2003-10-18T17:39:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![elion](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@elion](https://forum.kirupa.com/u/elion)
#### Post date: [October 18, 2003, 5:39pm UTC](https://forum.kirupa.com/t/hittest-creating-text/33385/1 "2003-10-18T17:39:19Z")

</div>

I want text to display in a dynamic text box when something hitTests something else, basically. :x How do I do it? ☹

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 19, 2003, 5:45pm UTC](https://forum.kirupa.com/t/hittest-creating-text/33385/2 "2003-10-19T17:45:53Z")

</div>

good day

ok here is an idea it will help you

draw something like a circle on the main stage then convert it to a movie clip

after that make a dynamic text and give a name in the variable as status

now on the circle it self we will ad this code

onClipEvent(enterFrame){  
\_root.status.hitTest(\_root.\_xmouse,\_root.\_ymouse);  
}

now test the movie and will notice that the dynamic text is appearing  
a word false now move the mouse to the circle you notice the word false  
change to true, test it

hope this is what you want
