# Adding a tooltip to a specific link/word in a dynamic textfield

**URL:** https://forum.kirupa.com/t/adding-a-tooltip-to-a-specific-link-word-in-a-dynamic-textfield/305464
**Category:** Uncategorized
**Created:** [February 25, 2010, 8:39pm UTC](https://forum.kirupa.com/t/adding-a-tooltip-to-a-specific-link-word-in-a-dynamic-textfield/305464 "2010-02-25T20:39:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mistermind](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Mistermind](https://forum.kirupa.com/u/Mistermind)
#### Post date: [February 25, 2010, 8:39pm UTC](https://forum.kirupa.com/t/adding-a-tooltip-to-a-specific-link-word-in-a-dynamic-textfield/305464/1 "2010-02-25T20:39:08Z")

</div>

Hello there fellow coders,  
I’ve been searching around the web for a very long time but I can’t seem to find a good solution for this pickle:  
I have a dynamic textfield on AS3 and would like to add a tooltip to some words within the text. I already got the tooltip class, so the problem lies in fact on ‘ **how to listen to mouse over events on specific texts inside a textfield** ’  
I’ve been trying to follow some methods from the livedocs but all I can get so far is a rectangle object of a single character using getCharIndexAtPoint and getCharBoundaries. It works if I just needed to add a tooltip to a single character (since it can detect which character I’m currently pointing at), but I need to search for actual words. It would be nice to have some sort of getMouseAt(text:String) but that doesn’t seem to exist.[FONT=Arial][SIZE=3]  
[/SIZE][/FONT]
