User Guide

64 Objects
document.getElementTextAttr()
Gets a specified TextAttrs property of the selected
text objects.
document.getFilters() Returns an array that contains the list of filters
applied to the currently selected object(s).
document.getMetadata() Returns a string containing the XML metadata
associated with the document.
document.getSelectionRect() Gets the bounding rectangle of the current
selection.
document.getTextString() Gets the currently selected text.
document.getTimeline() Retrieves the current Timeline object in the
document.
document.getTransformationPoint() Gets the location of the transformation point of the
current selection.
document.group() Converts the current selection to a group.
document.importPublishProfile() Imports a profile from a file.
document.importFile() Imports a file into the document.
document.importSWF() Imports a SWF file into the document.
document.intersect() Creates an intersection drawing object from all
selected drawing objects.
document.match() Makes the size of the selected objects the same.
document.mouseClick() Performs a mouse click from the arrow tool.
document.mouseDblClk() Performs a double mouse click from the arrow tool.
document.moveSelectedBezierPointsBy() If the selection contains at least one path with at
least one Bézier point selected, this method moves
all selected Bézier points on all selected paths by
the specified amount.
document.moveSelectionBy() Moves selected objects by a specified distance.
document.optimizeCurves() Optimizes smoothing for the current selection,
allowing multiple passes, if specified, for optimal
smoothing; equivalent to selecting Modify > Shape >
Optimize.
document.publish() Publishes the document according to the active
Publish Settings (File > Publish Settings);
equivalent to selecting File > Publish.
Method Description