Learning ActionScript 2.0 in Adobe Flash |
|
|
|
| Working with Text and Strings > Using HTML-formatted text > About supported HTML tags > Break tag | |||
The <br> tag creates a line break in the text field. You must set the text field to be a multiline text field to use this tag.
In the following example, the line breaks between sentences:
this.createTextField("text1_txt", 1, 10, 10, 200, 100);
text1_txt.html = true;
text1_txt.multiline = true;
text1_txt.htmlText = "The boy put on his coat.<br />His coat was <font color='#FF0033'>red</font> plaid.";
|
|
|
|