beautypg.com

Text.textruns, Text.texttype, Array (see – Adobe Extending Flash Professional CS4 User Manual

Page 472

background image

450

EXTENDING FLASH CS4 PROFESSIONAL

Text object

Description
Property; an integer that is equivalent to the Tab Index field in the Accessibility panel. This value lets you determine
the order in which objects are accessed when the user presses the Tab key.

Example
The following example gets the

tabIndex

of the currently selected object:

var theTabIndex = fl.getDocumentDOM().selection[0].tabIndex;

The following example sets the

tabIndex

of the currently selected object:

fl.getDocumentDOM().selection[0].tabIndex = 1;

text.textRuns

Availability
Flash MX 2004.

Usage

text.textRuns

Description
Read-only property; an array of TextRun objects (see

TextRun object

).

Example
The following example stores the value of the

textRuns

property in the

myTextRuns

variable:

var myTextRuns = fl.getDocumentDOM().selection[0].textRuns;

text.textType

Availability
Flash MX 2004.

Usage

text.textType

Description
Property; a string that specifies the type of text field. Acceptable values are

"static"

,

"dynamic"

, and

"input"

.

Example
The following example sets the

textType

property to

input

:

fl.getDocumentDOM().selection[0].textType = "input";