There’s two ways to do this, one easy but weak, one slightly more difficult but powerful.
in a normal textbox (not htmlText) you can do the equivalient of pressing the Enter Key by using “newline”
mytext = "hello" + newline + "world";
mytextbox.text = mytext;
if you use two newlines, i.e.
mytext = "hello" + newline + newline + "world";
you will produce:
That’s the easy way. If you want even more control, you’ll have to use textFormat;
textFormat, in case you’ve never used it, is a flash object used to control complicated text formatting.
It has a property called “leading” which controlls the amount of vertical space between lines. For example, let’s say you have a dynamic multiline textbox on your stage called “myTextBox”:
myFormat = new TextFormat();
myTextBox.text = "hello" + newline + "world";
will put 20 pixels of spacing between each line.
Don’t think this works with htmlText however.
Hope this helps,