could do it using a dynamic text field and use something like this
Code:
function underlineTextField(theTextField)
{
var underlinedText = new TextFormat();
underlinedText.underline=true;
theTextField.setTextFormat(underlinedText);
theTextField.setNewTextFormat(underlinedText);
}
underlineTextField(yourText);