beautypg.com

Text.accname – Adobe Extending Flash Professional CS5 User Manual

Page 458

background image

436

EXTENDING FLASH PROFESSIONAL

Text object

Last updated 5/2/2011

text.accName

Availability
Flash MX 2004.

Usage

text.accName

Description
Property; a string that is equivalent to the Name field in the Accessibility panel. Screen readers identify objects by
reading the name aloud. This property cannot be used with dynamic text.

Example
The following example retrieves the name of the object:

text.embedRanges

A string that consists of delimited integers that correspond to the items that can be selected in
the Character Embedding dialog box.

text.embedVariantGlyphs

A Boolean value that specifies whether to enable the embedding of variant glyphs.

text.fontRenderingMode

A string that specifies the rendering mode for the text.

text.length

Read-only; an integer that represents the number of characters in the Text object.

text.lineType

A string that sets the line type to

"single line"

,

"multiline"

,

"multiline no wrap"

, or

"password"

.

text.maxCharacters

An integer that specifies the maximum characters the user can enter into this Text object.

text.orientation

A string that specifies the orientation of the text field.

text.renderAsHTML

A Boolean value that controls whether Flash draws the text as HTML and interprets embedded
HTML tags.

text.scrollable

A Boolean value that controls whether the text can (

true

) or cannot (

false

) be scrolled.

text.selectable

A Boolean value that controls whether the text can (

true

) or cannot (

false

) be selected. Input

text is always selectable.

text.selectionEnd

A zero-based integer that specifies the offset of the end of a text subselection.

text.selectionStart

A zero-based integer that specifies the offset of the beginning of a text subselection.

text.shortcut

A string that is equivalent to the Shortcut field in the Accessibility panel.

text.silent

A Boolean value that specifies whether the object is accessible.

text.tabIndex

An integer that is equivalent to the Tab Index field in the Accessibility panel.

text.textRuns

Read-only; an array of TextRun objects.

text.textType

A string that specifies the type of text field. Acceptable values are

"static"

,

"dynamic"

, and

"input"

.

text.useDeviceFonts

A Boolean value. A value of

true

causes Flash to draw text using device fonts.

text.variableName

A string that contains the contents of the Text object.

Property

Description

This manual is related to the following products: