beautypg.com

Adobe Extending Flash Professional CS4 User Manual

Page 82

background image

60

EXTENDING FLASH CS4 PROFESSIONAL

Document object

document.saveAndCompact()

Saves and compacts the file; equivalent to selecting File > Save
and Compact.

document.saveAVersion()

Saves a version of the specified document to the Version Cue
server.

document.scaleSelection()

Scales the selection by a specified amount; equivalent to using
the Free Transform tool to scale the object.

document.selectAll()

Selects all items on the Stage; equivalent to pressing
Control+A (Windows) or Command+A (Macintosh) or
selecting Edit > Select All.

document.selectNone()

Deselects any selected items.

document.setAlignToDocument()

Sets the preferences for

document.align()

,

document.distribute()

,

document.match()

, and

document.space()

to act on the document; equivalent to

enabling the To Stage button in the Align panel.

document.setBlendMode()

Sets the blending mode for the selected objects.

document.setCustomFill()

Sets the fill settings for the Tools panel, Property inspector, and
any selected shapes.

document.setCustomStroke()

Sets the stroke settings for the Tools panel, Property inspector,
and any selected shapes.

document.setElementProperty()

Sets the specified

Element

property on selected object(s) in

the document.

document.setElementTextAttr()

Sets the specified

TextAttrs

property of the selected text

items to the specified value.

document.setFillColor()

Changes the fill color of the selection to the specified color.

document.setFilterProperty()

Sets a specified filter property for the currently selected
object(s).

document.setFilters()

Applies filters to the selected objects.

document.setInstanceAlpha()

Sets the opacity of the instance.

document.setInstanceBrightness()

Sets the brightness for the instance.

document.setInstanceTint()

Sets the tint for the instance.

document.setMetadata()

Sets the XML metadata for the specified document,
overwriting any existing metadata.

document.setMobileSettings()

Sets the value of an XML settings string in a mobile FLA file.

document.setOvalObjectProperty()

Specifies a value for a specified property of primitive Oval
objects.

document.setPlayerVersion()

Sets the version of the Flash Player targeted by the specified
document.

document.setRectangleObjectProperty()

Specifies a value for a specified property of primitive Rectangle
objects.

document.setSelectionBounds()

Moves and resizes the selection in a single operation.

document.setSelectionRect()

Draws a rectangular selection marquee relative to the Stage,
using the specified coordinates.

Method

Description