TextField.embedFonts
725
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
true
, you must use standard HTML commands such as
<BR>
and
<P>
to
place line breaks in the text field.
If
my_txt
.html
is
false
, this property is ignored.
Example
The following example creates two text fields, called
first_txt
and
second_txt
. The white
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
true
, renders the text field using embedded font outlines. If
false
, it renders the text field using device fonts.
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...