Flash CS3 Documentation |
|||
| 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.";
Flash CS3
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00000925.html
Comments
Yahafiz said on Oct 24, 2007 at 6:27 AM : DaOrangeMan said on Jan 9, 2008 at 7:44 AM : santaraam said on Feb 15, 2008 at 9:52 AM :