Extending Flash |
|
|
|
| Objects > Document object > document.optimizeCurves() | |||
Flash MX 2004.
document.optimizeCurves(smoothing,bUseMultiplePasses)
smoothing An integer in the range from 0 to 100, with 0 specifying no smoothing, and 100 specifying maximum smoothing.
bUseMultiplePasses A Boolean value that, when set to true, indicates that the method should use multiple passes, which is slower but produces a better result. This parameter has the same effect as clicking the Use Multiple Passes button in the Optimize Curves dialog box.
Nothing.
Method; optimizes smoothing for the current selection, allowing multiple passes, if specified, for optimal smoothing. This method is equivalent to selecting Modify > Shape > Optimize.
The following example optimizes the curve of the current selection to 50º of smoothing with multiple passes:
fl.getDocumentDOM().optimizeCurves(50, true);
|
|
|
|