beautypg.com

Adobe Extending Flash Professional CS4 User Manual

Page 83

background image

61

EXTENDING FLASH CS4 PROFESSIONAL

Document object

Property summary
You can use the following properties with the Document object.

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.

document.setStrokeStyle()

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

document.setTextRectangle()

Changes the bounding rectangle for the selected text item to
the specified size.

document.setTextSelection()

Sets the text selection of the currently selected text field to the
values specified by the

startIndex

and

endIndex

values.

document.setTextString()

Inserts a string of text.

document.setTransformationPoint()

Moves the transformation point of the current selection.

document.skewSelection()

Skews the selection by a specified amount.

document.smoothSelection()

Smooths the curve of each selected fill outline or curved line.

document.space()

Spaces the objects in the selection evenly.

document.straightenSelection()

Straightens the currently selected strokes; equivalent to using
the Straighten button in the Tools panel.

document.swapElement()

Swaps the current selection with the specified one.

document.swapStrokeAndFill()

Swaps the Stroke and Fill colors.

document.synchronizeWithHeadVersion()

Synchronizes the specified document with the most current
version on the Version Cue server and logs any errors to the
Output panel.

document.testMovie()

Executes a Test Movie operation on the document.

document.testScene()

Executes a Test Scene operation on the current scene of the
document.

document.traceBitmap()

Performs a trace bitmap on the current selection; equivalent to
selecting Modify > Bitmap > Trace Bitmap.

document.transformSelection()

Performs a general transformation on the current selection by
applying the matrix specified in the arguments.

document.translate3DCenter()

Sets the XYZ position around which the selection is translated
or rotated.

document.translate3DSelection()

Applies a 3D translation to the selection.

document.unGroup()

Ungroups the current selection.

document.union()

Combines all selected shapes into a drawing object.

document.unlockAllElements()

Unlocks all locked elements on the currently selected frame.

document.xmlPanel()

Posts a XMLUI dialog box.

Method

Description