Adobe Extending Flash Professional CS4 User Manual

Page 84

Advertising
background image

62

EXTENDING FLASH CS4 PROFESSIONAL

Document object

Property

Description

document.accName

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

document.as3AutoDeclare

A Boolean value that describes whether the instances placed on the Stage
are automatically added to user-defined timeline classes.

document.as3Dialect

A string that describes the ActionScript 3.0 “dialect” being used in the
specified document.

document.as3ExportFrame

An integer that specifies in which frame to export ActionScript 3.0 classes.

document.as3StrictMode

A Boolean value that specifies whether the ActionScript 3.0 compiler
should compile with the Strict Mode option turned on or off.

document.as3WarningsMode

A Boolean value that specifies whether the ActionScript 3.0 compiler
should compile with the Warnings Mode option turned on or off.

document.asVersion

An integer that specifies which version of ActionScript is being used in the
specified file.

document.autoLabel

A Boolean value that is equivalent to the Auto Label check box in the
Accessibility panel.

document.backgroundColor

A string, hexadecimal value, or integer that represents the background
color.

document.currentPublishProfile

A string that specifies the name of the active publish profile for the
specified document.

document.currentTimeline

An integer that specifies the index of the active timeline.

document.description

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

document.docClass

Specifies the top-level ActionScript 3.0 class associated with the
document.

document.externalLibraryPath

A string that contains a list of items in the document’s ActionScript 3.0
External library path, which specifies the location of SWC files used as
runtime shared libraries.

document.forceSimple

A Boolean value that specifies whether the children of the specified object
are accessible.

document.frameRate

A float value that specifies the number of frames displayed per second
when the SWF file plays; the default is 12.

document.height

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

document.id

A unique integer (assigned automatically) that identifies a document
during a Flash session.

document.library

Read-only; the

library object

for a document.

document.libraryPath

A string that contains a list of items in the document’s ActionScript 3.0
Library path, which specifies the location of SWC files or folders containing
SWC files.

document.livePreview

A Boolean value that specifies whether Live Preview is enabled.

document.name

Read-only; a string that represents the name of a document (FLA file).

document.path

Read-only; a string that represents the path of the document, in a
platform-specific format.

document.pathURI

Read-only; a string that represents the path of the document, expressed as
a file:/// URI.

Advertising