
TextFormat Class
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
886
|
ActionScript Language Reference
// To maintain the proportions of the original bounding box,
// we can set _xscale to match _yscale:
theField_txt._xscale = 500;
See Also
MovieClip._yscale, TextField._height, TextField._xscale, the TextFormat class
TextFormat Class
retrieve or set a text field’s visual formatting
Flash 6
Constructor
new TextFormat()
new TextFormat(font, size, color, bold, italic, underline, url,
target, align, leftMargin, rightMargin, indent, leading)
Arguments
font An optional string specifying the font property’s initial value.
size An optional integer specifying the
size property’s initial value.
color An optional integer specifying the
color property’s initial value.
bold An optional Boolean specifying the
bold property’s initial value.
italic An optional Boolean specifying the
italic property’s initial value.
underline An optional Boolean specifying the
underline property’s initial value.
url An optional string specifying the
url property’s initial value.
target An optional string specifying the
target property’s initial value.
align An optional string specifying the
align property’s initial value.
leftMargin An optional nonnegative integer specifying the
leftMargin property’s initial
value.
righMargin An optional nonnegative integer specifying the
rightMargin