Example
The following ActionScript traces all of the formatting information for a text field that is created
at runtime.
this.createTextField("dyn_txt", this.getNextHighestDepth(), 0, 0, 100, 200);
dyn_txt.text = "Frank";
dyn_txt.setTextFormat(new TextFormat());
var my_fmt:TextFormat = dyn_txt.getTextFormat();
for (var prop in my_fmt) {
trace(prop+": "+my_fmt[prop]);
}
See also
TextField.getNewTextFormat(), TextField.setNewTextFormat(),
TextField.setTextFormat()
TextField._height
Availability
Flash Player 6.
Usage
my_txt._height:Number
Description
Property; the height of the text field, in pixels.
Example
The following code example sets the height and width of a text field:
my_txt._width = 200;
my_txt._height = 200;
TextField.hscroll
Availability
Flash Player 6.
Usage
my_txt.hscroll:Number
Returns
An integer.
Description
Property; indicates the current horizontal scrolling position. If the
is not horizontally scrolled.
property is 0, the text
hscroll
TextField.hscroll
729
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?