Tool-Tip Implementaion?

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