Document.accname, Document.adddatatodocument() – Adobe Extending Flash Professional CS4 User Manual
Page 85
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.
Read-only; an array of the publish profile names for the document.
Read-only; the current
An array of the selected objects in the document.
A Boolean value that specifies whether the object is accessible.
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.
Read-only; an array of Timeline objects (see
).
Read-only; a
An integer that specifies the width of the document (Stage) in pixels.
Specifies the zoom percent of the Stage at authoring time.
Property
Description