cs3 as2 - how to detect newlines in dinamically loaded wrapped multiline textfield

Hi everybody, this is my first thread on Kirupa forums so please excuse my awkwardness.

I have the following composition from my designer:

So, I have to load these two HTML paragraphs from an XML file and put them in two actionscript created text fields. The text fields are multiline, wrapped and html and they are displayed just fine. Then I have to hilight one of the textfields just like in the image above so I must define a function that takes this textfield as an argument and creates a movieclip behind it. All I have to do further is draw some lines in this movieclip.

The problem is I just can’t detect the newline characters in the text field so I can draw the hilights from the start of each line to the end of it.

Here is my function:

[FONT=Courier New][COLOR=blue]function[/COLOR] hilight(sapou_txt){[/FONT]
[INDENT][FONT=Courier New][COLOR=blue]var[/COLOR] hilight_mc = sapou_txt[COLOR=blue]._parent.createEmptyMovieClip/COLOR;[/FONT]
[FONT=Courier New]hilight_mc[COLOR=blue]._x [/COLOR]= -5; [/FONT]
[FONT=Courier New]hilight_mc[COLOR=blue]._y [/COLOR]= sapou_txt[COLOR=blue]._y[/COLOR];[/FONT]
[/INDENT][FONT=Courier New]
}
[/FONT]

There would be [FONT=Courier New].[COLOR=blue]indexOf/COLOR[/FONT] method of strings but if I use it after [FONT=Courier New]sapou_txt.[COLOR=blue]text[/COLOR] [/FONT]this has no result because, apparently, all I have there is a string without any special newline characters, just as I loaded it from the XML file, minus HTML tags.

If I use [FONT=Courier New]sapou_txt.[COLOR=blue]htmlText[/COLOR][/FONT] apparently I get the original text including the HTML tags but, again, no special newline characters and, as you probably realised from my description above, I need both newlines from HTML (wich are not so hard to detect) and newlines caused by wrapping text in the textfield. Anyway, if I succeed in detcting newlines in the text field then I won’t need the newlines in my original HTML.

Anyone had the same problem or know how to solve this, or know other way to draw those hilights behind every line in my text?