
TextField._height Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
842
|
ActionScript Language Reference
Note that changes to a TextFormat object returned by getTextFormat() do not have any
effect on the text of
theField until the object is applied with setTextFormat(). For example,
on its own, the following assignment of the
font property has no effect on theField_txt:
allCharsFormat.font = "Courier New";
But when we add a call to setTextFormat(), the change is applied:
theField_txt.setTextFormat(allCharsFormat); // Applies the "Courier New" font
// to the whole text field
Don’t confuse getNewTextFormat() with getTextFormat(); the former retrieves the format
used for text that will be added to
theField in the future, while the latter retrieves the
format for characters already in
theField.
For a detailed description of TextFormat objects, see the TextFormat class entry.
See Also
TextField.getNewTextFormat(), TextField.setNewTextFormat(), TextField.setTextFormat(),
the TextFormat class
TextField._height Property
height of the text field’s bounding box, in pixels
Flash 6
read/write
theField._height
Description
Every text field defines a rectangular region, known as its bounding box, inside which text is
displayed. The floating-point
_height property is a nonnegative number specifying the
height of a field’s bounding box, in pixels. By