User Guide

Document object 69
Description
Method; adds a new publish profile and makes it the current one. See
document.deletePublishProfile().
Example
The following example adds a new publish profile with a default name and then displays the
name of the profile in the Output panel:
fl.getDocumentDOM().addNewPublishProfile();
fl.outputPanel.trace(fl.getDocumentDOM().currentPublishProfile);
The following example adds a new publish profile with the name "my profile":
fl.getDocumentDOM().addNewPublishProfile("my profile");
document.addNewRectangle()
Availability
Flash MX 2004.
Usage
document.addNewRectangle( boundingRectangle, roundness
[, bSuppressFill [, bSuppressStroke ] ] )
Parameters
boundingRectangle
A rectangle that specifies the bounds within which the new rectangle is
added. This parameter specifies a pixel location for
left, top, right, and bottom.
roundness An integer value between 0 and 999 that specifies the roundness to use for the
corners. The value is specified as number of points. The greater the value, the greater the
roundness.
bSuppressFill A Boolean value that, if set to true, causes the method to create the shape
without a fill. The default value is
false. This parameter is optional.
bSuppressStroke A Boolean value that, if set to true, causes the method to create the
rectangle without a stroke. The default value is
false. This parameter is optional.
Returns
Nothing.
Description
Method; adds a new rectangle or rounded rectangle, fitting it into the specified bounds. This
method performs the same operation as the rectangle tool. The method uses the document’s
current default stroke and fill attributes and adds the rectangle on the current frame and layer. If
the
bSuppressFill parameter is set to true, the rectangle is drawn without a fill. If the
bSuppressStroke parameter is set to true, the rectangle is drawn without a stroke. Either
bSuppressFill or bSuppressStroke must be set to false or the method does nothing.