Text object
Inheritance
Element object
Availability
Flash MX 2004.
Description
The Text object represents a single text item in a document. All properties of the text pertain
to the entire text block.
To set properties of a text run within the text field, see
object" on page
466. To change properties of a selection within a text field, you can use
document.setElementTextAttr()
To set text properties of the selected text field, use
following example assigns the currently selected text field to the variable
fl.getDocumentDOM().setElementProperty("variableName", "textVar");
Method summary for the Text object
In addition to the
Element object
Text object:
Method
text.getTextAttr()
text.getTextString()
text.setTextAttr()
text.setTextString()
436
Objects
CHAPTER 40
> Text object
and specify a range of text, or use the current selection.
methods, you can use the following methods with the
Description
Retrieves the specified attribute for the text identified by the
optional
and
startIndex
Retrieves the specified range of text.
Sets the specified attribute associated with the text identified by
and
startIndex
endIndex
Changes the text string within this text object.
"Property summary for the TextRun
document.setElementProperty()
parameters.
endIndex
.
Objects
. The
:
textVar
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers