beautypg.com

Adobe Extending Flash Professional CS5 User Manual

Page 79

background image

57

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

document.exitEditMode()

Exits from symbol-editing mode and returns focus to the next
level up from the editing mode.

document.exportPNG()

Exports the document as one or more PNG files.

document.exportPublishProfile()

Exports the currently active profile to an XML file.

document.exportPublishProfileString()

Returns a string that specifies, in XML format, the specified
profile.

document.exportSWF()

Exports the document in the Flash SWF format.

document.getAlignToDocument()

Identical to retrieving the value of the To Stage button in the
Align panel.

document.getBlendMode()

Returns a string that specifies the blending mode for the
selected object(s).

document.getCustomFill()

Retrieves the fill object of the selected shape, or the Tools
panel and Property inspector if specified.

document.getCustomStroke()

Returns the stroke object of the selected shape, or the Tools
panel and Property inspector if specified.

document.getDataFromDocument()

Retrieves the value of the specified data.

document.getElementProperty()

Gets the specified

Element

property for the current selection.

document.getElementTextAttr()

Gets a specified

TextAttrs

property of the selected Text

objects.

document.getFilters()

Returns an array that contains the list of filters applied to the
currently selected object(s).

document.getMetadata()

Returns a string containing the XML metadata associated with
the document.

document.getMobileSettings()

Returns the string passed to

document.setMobileSettings()

.

document.getPlayerVersion()

Returns a string that represents the targeted player version for
the specified document.

document.getSelectionRect()

Gets the bounding rectangle of the current selection.

document.getTextString()

Gets the currently selected text.

document.getTimeline()

Retrieves the current

Timeline object

in the document.

document.getTransformationPoint()

Gets the location of the transformation point of the current
selection.

document.group()

Converts the current selection to a group.

document.importFile()

Imports a file into the document.

document.importPublishProfile()

Imports a profile from a file.

document.importPublishProfileString()

Imports an XML string that represents a publish profile and sets
it as the current profile.

document.importSWF()

Imports a SWF file into the document.

document.intersect()

Creates an intersection drawing object from all selected
drawing objects.

document.loadCuepointXML()

Loads a cue point XML file.

Method

Description

This manual is related to the following products: