# Creating dynamic tooltip for dynamic text

**URL:** <https://forum.kirupa.com/t/creating-dynamic-tooltip-for-dynamic-text/202565>\
**Category:** flash\
**Created:** [October 2, 2006, 7:05pm UTC](https://forum.kirupa.com/t/creating-dynamic-tooltip-for-dynamic-text/202565 "2006-10-02T19:05:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingkool68](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kingkool68/32/2168_2.png) [@kingkool68](https://forum.kirupa.com/u/kingkool68)\
**Post date:** [October 2, 2006, 7:05pm UTC](https://forum.kirupa.com/t/creating-dynamic-tooltip-for-dynamic-text/202565/1 "2006-10-02T19:05:18Z")

</div>

I’ve been working on a proof of concept and have run into a stumper. What I am trying to do is add tooltips dynamically to dynamic text. Here is what I have so far, [http://www.hallmedia.com/client/chop/tooltip.swf](http://www.hallmedia.com/client/chop/tooltip.swf)

Type in some text including the magic word “dolor” and hit the orange button. Flash will highlight the first instance of dolor wherever it might be in your text. Groovy.

Now I am trying to figure out a way to get the coordinates of the first and last character so I can attach a movie clip covering that area that will invoke a tooltip popup upon rollover. Any ideas?
