Text.silent, Text.tabindex – Adobe Extending Flash Professional CS4 User Manual

Page 471

Advertising
background image

449

EXTENDING FLASH CS4 PROFESSIONAL

Text object

Usage

text.shortcut

Description
Property; a string that is equivalent to the Shortcut field in the Accessibility panel. The shortcut is read by the screen
reader. This property cannot be used with dynamic text.

Example
The following example gets the shortcut key of the selected object and shows the value:

var theShortcut = fl.getDocumentDOM().selection[0].shortcut;

fl.trace(theShortcut);

The following example sets the shortcut key of the selected object:

fl.getDocumentDOM().selection[0].shortcut = "Ctrl+i";

text.silent

Availability
Flash MX 2004.

Usage

text.silent

Description
Property; a Boolean value that specifies whether the object is accessible. This is equivalent to the inverse logic of the
Make Object Accessible setting in the Accessibility panel. That is, if

silent

is

true

, Make Object Accessible is

deselected. If it is

false

, Make Object Accessible is selected.

Example
The following example determines if the object is accessible (a value of

false

means that it is accessible):

var isSilent = fl.getDocumentDOM().selection[0].silent;

The following example sets the object to be accessible:

fl.getDocumentDOM().selection[0].silent = false;

text.tabIndex

Availability
Flash MX 2004.

Usage

text.tabIndex

Advertising