beautypg.com

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

Page 84

background image

62

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

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.

type

A string that defines the type of data to add. Acceptable values are

"integer"

,

"integerArray"

,

"double"

,

"doubleArray"

,

"string"

, and

"byteArray"

.

data

The value to add. Valid types depend on the type parameter.

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

This manual is related to the following products: