beautypg.com

Adobe Extending Flash Professional CS5 User Manual

Page 81

background image

59

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

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.

document.setStageVanishingPoint()

Specifies the vanishing point for viewing 3D objects.

document.setStageViewAngle()

Specifies the perspective angle for viewing 3D objects.

document.setStroke()

Sets the color, width, and style of the selected strokes.

document.setStrokeColor()

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

document.setStrokeSize()

Changes the stroke size of the selection to the specified size.

Method

Description

This manual is related to the following products: