# Tool-Tip Implementaion?

**URL:** <https://forum.kirupa.com/t/tool-tip-implementaion/79552>\
**Category:** Uncategorized\
**Created:** [February 15, 2005, 6:41am UTC](https://forum.kirupa.com/t/tool-tip-implementaion/79552 "2005-02-15T06:41:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashishchandras](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@ashishchandras](https://forum.kirupa.com/u/ashishchandras)\
**Post date:** [February 15, 2005, 6:41am UTC](https://forum.kirupa.com/t/tool-tip-implementaion/79552/1 "2005-02-15T06:41:19Z")

</div>

Hi,

I want to create tooltip for the dynamic text fields on the stage. Well I have managed to create the same and its working fine.

But my actual need is to create tool-tip for only those text field in which data is not getting fit in. I have assigned some fixed width for each text field. And if the data crosses the limit tool tip gets activated.

How do I have trace on it ?

myText.htmlText = “asjdajkd askdjkasd kasd kaj”

trace(a.text.length) // this returns the total no of characters entered in the text field.

Is there any way to find out the no of characters I can fit in into a textfield having a width say 50 pixels (font size is 11 and type is Arial)

thanx

* * *

aShIsH
