Text Object - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

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
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
Text object:
Method
text.getTextAttr()
text.getTextString()
text.setTextAttr()
text.setTextString()
Property summary for the Text object
In addition to the
Text object:
Property
text.accName
text.autoExpand
text.border
text.description
> Text object
322. To change properties of a selection within a text field, you can use
and specify a range of text, or use the current selection.
Element object
methods, you can use the following methods with the
Description
Method; retrieves the specified attribute for the text identified by the
optional
startIndex
Method; retrieves the specified range of text.
Method; sets the specified attribute associated with the text identified by
startIndex
Method; changes the text string within this text object.
Element object
properties, the following properties are available for the
Description
Property; a string that is equivalent to the Name field in the Accessibility
panel.
Property; a Boolean value that controls the expansion of the bounding
width for static text fields or the bounding width and height for dynamic
or input text.
Property; a Boolean value that controls whether Flash shows (
hides (
false
Property; a string that is equivalent to the Description field in the
Accessibility panel.
"Property summary for the TextRun
document.setElementProperty()
and
parameters.
endIndex
and
.
endIndex
) a border around dynamic or input text.
CHAPTER 3
Objects
. The
:
textVar
) or
true
Text object
307

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents