# Button hit area doesn't work with dynamic text box

**URL:** <https://forum.kirupa.com/t/button-hit-area-doesnt-work-with-dynamic-text-box/316337>\
**Category:** flash\
**Created:** [November 18, 2010, 5:53pm UTC](https://forum.kirupa.com/t/button-hit-area-doesnt-work-with-dynamic-text-box/316337 "2010-11-18T17:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlifes](https://avatars.discourse-cdn.com/v4/letter/x/9f8e36/32.png) [@xlifes](https://forum.kirupa.com/u/xlifes)\
**Post date:** [November 18, 2010, 5:53pm UTC](https://forum.kirupa.com/t/button-hit-area-doesnt-work-with-dynamic-text-box/316337/1 "2010-11-18T17:53:51Z")

</div>

Hi,

I’m trying to do a project involving loading dynamic text via xml.  
I followed this tutorial ([http://www.kirupa.com/web/xml/examples/squirrelfinder.htm](http://www.kirupa.com/web/xml/examples/squirrelfinder.htm)) and adapt it so that the buttons are now linking to url’s.

In order to do that, I had to change the .text property to .htmlText in the actionscript.  
However, now the dynamic text box doesn’t recognize when the mouse is over it. I mean, the whole button has a hit area that works apart from the place where the text is overlapping it.  
I’ve seen others referring this issue but I haven’t found a solution yet.  
Does anyone have one?

Thanks
