I might try using TextField.getCharBoundries() on the first and last line of each character. Use getLineOffset() to get the first character and add getLineLength() to get the last. Also, this method allows you to double check if you're measuring at the correct characters because it requires you to know what the first and last character of each line is so you can trace them to double check your code.
- Dan On 11/30/06, Paul Hastings <[EMAIL PROTECTED]> wrote:
i'm having another newbie flex brain fog ;-) trying to set up a background color for a TextField that is more or less the width & height of the it's text. i've tried looping thru the text looking at TextLineMetrics but i still end up w/text backgrounds that are too wide, something along the lines of (where [ ] represent the background): [test text ] any suggestions? thanks.

