Description
Property; a Boolean value that specifies whether extra white space (spaces, line breaks, and so on)
in an HTML text field should be removed when the field is rendered in a browser. The default
value is
.
false
If you set this value to
place line breaks in the text field.
If
my_txt.html
Example
The following example creates two text fields, called
space is removed from the second text field. Add the following ActionScript to your FLA or AS
file:
var my_str:String = "Hello\tWorld\nHow are you?\t\t\tEnd";
this.createTextField("first_txt", this.getNextHighestDepth(), 10, 10, 160,
120);
first_txt.html = true;
first_txt.multiline = true;
first_txt.wordWrap = true;
first_txt.condenseWhite = false;
first_txt.border = true;
first_txt.htmlText = my_str;
this.createTextField("second_txt", this.getNextHighestDepth(), 180, 10, 160,
120);
second_txt.html = true;
second_txt.multiline = true;
second_txt.wordWrap = true;
second_txt.condenseWhite = true;
second_txt.border = true;
second_txt.htmlText = my_str;
See also
TextField.html
TextField.embedFonts
Availability
Flash Player 6.
Usage
my_txt.embedFonts:Boolean
Description
Property; a Boolean value that, when
, it renders the text field using device fonts.
false
, you must use standard HTML commands such as
true
is
, this property is ignored.
false
true
first_txt
, renders the text field using embedded font outlines. If
and
<BR>
and
. The white
second_txt
TextField.embedFonts
to
<P>
725
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?