beautypg.com

Adobe Extending Flash Professional CS5 User Manual

Page 82

background image

60

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

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

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.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.

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.

Method

Description

This manual is related to the following products: