User Guide

74 Objects
Parameters
boundingRectangle A rectangle that specifies the bounds of the oval to be added. For
information on the format of
boundingRectangle, see document.addNewRectangle().
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 documents current default stroke and fill
attributes and adds the oval on the current frame and layer. If
bSuppressFill is set to true,
the oval is drawn without a fill. If
bSuppressStroke is set to true, the oval is drawn without
a stroke. If both
bSuppressFill and bSuppressStroke are set to true, the method has no
effect.
Example
The following example adds a new oval within the specified coordinates; it is 164 pixels in
width and 178 pixels in height:
flash.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228});
The following example draws the oval without a fill:
flash.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228},
true);
The following example draws the oval without a stroke:
flash.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228},
false, true);