beautypg.com

Document.accname, Document.adddatatodocument() – Adobe Extending Flash Professional CS4 User Manual

Page 85

background image

63

EXTENDING FLASH CS4 PROFESSIONAL

Document object

document.accName

Availability
Flash MX 2004.

Usage

document.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.

Example
The following example sets the accessibility name of the document to

"Main Movie"

:

fl.getDocumentDOM().accName = "Main Movie";

The following example gets the accessibility name of the document:

fl.trace(fl.getDocumentDOM().accName);

document.addDataToDocument()

Availability
Flash MX 2004.

Usage

document.addDataToDocument(name, type, data)

Parameters

name

A string that specifies the name of the data to add.

document.publishProfiles

Read-only; an array of the publish profile names for the document.

document.screenOutline

Read-only; the current

ScreenOutline object

for the document.

document.selection

An array of the selected objects in the document.

document.silent

A Boolean value that specifies whether the object is accessible.

document.sourcePath

A string that contains a list of items in the document’s ActionScript 3.0
Source path, which specifies the location of ActionScript class files.

document.timelines

Read-only; an array of Timeline objects (see

Timeline object

).

document.viewMatrix

Read-only; a

Matrix object

.

document.width

An integer that specifies the width of the document (Stage) in pixels.

document.zoomFactor

Specifies the zoom percent of the Stage at authoring time.

Property

Description