换行标签

<br> 标签将在文本字段中创建一个换行符。若要使用此标签,您必须将文本字段设置为多行文本字段。

在下例中,换行符位于句子中间:

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

 

评论添加到页面后给我发送电子邮件 | 评论报告

当前页: http://livedocs.adobe.com/flash/9.0_cn/main/00000925.html