View comments | RSS feed

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


Comments


Yahafiz said on Oct 24, 2007 at 6:27 AM :
Hi Adobe,

Is there any way to type a break in an editable text field? When I try to do a search/replace to add <br/>'s to my htmlText they seem to be replaced by <p>'s.

Thanx
DaOrangeMan said on Jan 9, 2008 at 7:44 AM :
Is the attribute clear supported for the break element? I cannot get text to wrap properly around images without using a truckload of br elements.
santaraam said on Feb 15, 2008 at 9:52 AM :
I too have to use a lot of br tags to push the text below clear all does not work. Is there any otehr method??

 

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