Adobe Extending Flash Professional CS5 User Manual
Page 82
60
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Property summary
You can use the following properties with the Document object.
Changes the stroke style of the selection to the specified style.
Changes the bounding rectangle for the selected text item to
the specified size.
Sets the text selection of the currently selected text field to the
values specified by the
startIndex
and
endIndex
values.
Inserts a string of text.
document.setTransformationPoint()
Moves the transformation point of the current selection.
Skews the selection by a specified amount.
Smooths the curve of each selected fill outline or curved line.
Spaces the objects in the selection evenly.
document.straightenSelection()
Straightens the currently selected strokes; equivalent to using
the Straighten button in the Tools panel.
Swaps the current selection with the specified one.
Swaps the Stroke and Fill colors.
Executes a Test Movie operation on the document.
Executes a Test Scene operation on the current scene of the
document.
Performs a trace bitmap on the current selection; equivalent to
selecting Modify > Bitmap > Trace Bitmap.
Performs a general transformation on the current selection by
applying the matrix specified in the arguments.
Sets the XYZ position around which the selection is translated
or rotated.
document.translate3DSelection()
Applies a 3D translation to the selection.
Ungroups the current selection.
Combines all selected shapes into a drawing object.
Unlocks all locked elements on the currently selected frame.
Posts a XMLUI dialog box.
Property
Description
A string that is equivalent to the Name field in the Accessibility panel.
A Boolean value that describes whether the instances placed on the Stage
are automatically added to user-defined timeline classes.
A string that describes the ActionScript 3.0 “dialect” being used in the
specified document.
An integer that specifies in which frame to export ActionScript 3.0 classes.
Method
Description