104
Chapter 3: Objects
Description
Method; optimizes smoothing for the current selection, allowing multiple passes, if specified, for
optimal smoothing. This method is equivalent to selecting Modify > Shape > Optimize.
Example
The following example optimizes the curve of the current selection to 50º of smoothing with
multiple passes:
fl.getDocumentDOM().optimizeCurves(50, true);
document.path
Availability
Flash MX 2004.
Usage
document.path
Description
Read-only property; a string that represents the path of the document. If the document has never
been saved, this property is
undefined
.
Example
The following example displays the path of the first document in the documents array in the
Output panel:
var filePath = flash.documents[0].path;
fl.trace(filePath);
document.publish()
Availability
Flash MX 2004.
Usage
document.publish()
Parameters
None.
Returns
Nothing.
Description
Method; publishes the document according to the active Publish Settings (see File > Publish
Settings). This method is equivalent to selecting File > Publish.
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...