User Guide

68 Chapter 3: Objects
Parameters
boundingRectangle
A rectangle that specifies the bounds of the oval to be added.
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 shape
without a stroke. The default value is
false. This parameter is optional.
Returns
Nothing.
Description
Method; adds a new oval in the specified bounding rectangle. This method performs the same
operation as the oval tool. The method uses the document’s current default stroke and fill
attributes and adds the oval on the current frame and layer. If
bSurpressFill is set to true, the
oval is drawn without a fill. If
bSurpressStroke is set to true, the oval is drawn without a
stroke. If both
bSuppressFill or bSuppressStroke are set to true, the method will do nothing.
Example
The following example adds a new oval within the specified coordinates:
flash.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228});
The following example draws an oval without fill:
flash.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228},
true);
The following example draws an oval without stroke:
flash.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228},
false, true);
document.addNewPublishProfile()
Availability
Flash MX 2004.
Usage
document.addNewPublishProfile( [profileName ] )
Parameters
profileName
the unique name of the new profile. If you do not specify a name, a default name
is provided. This parameter is optional.
Returns
An integer that is the index of the new profile in the profiles list. Returns -1 if a new profile
cannot be created.