
TextField.textHeight Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
875
this.createTextField("title_txt", 1, 0, 0, 200, 20);
title_txt.text = "The Story of Princess Gwendolyn";
title_txt.textColor = 0xFF0000;
To set the background color, use the backgroundColor property. To color and format text
on a character-by-character basis, use setTextFormat() or
htmlText instead. Any assign-
ment to
textColor overwrites specific character color information contained in the field’s
htmlText property or TextFormat objects. Once textColor is set, all subsequent text appears
in the specified color. Functionally, assigning
textColor is identical to creating a
TextFormat object with a
color property set, then applying that format to the entire field
with setTextFormat() and also applying it to any new text with setNewTextFormat(). The
value of
textColor is also reflected in htmlText if the html property is true.
See Also
The Color class, TextField.backgroundColor, TextField.borderColor, TextField.html,
TextField.htmlText, TextField.setNewTextFormat(), TextField.setTextFormat()
TextField.textHeight Property
pixel height of all the text in the text field
Flash 6
read-only
theField.textHeight
Description
The integer textHeight property indicates the pixel height of the entire body of text
contained by
theField. It is not ...