|
Flash CS4 Resources |
document.addNewOval()Parameters
DescriptionMethod; adds a new Oval object 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 both bSuppressFill and bSuppressStroke are set to true, the method has no effect. ExampleThe following example adds a new oval within the specified coordinates; it is 164 pixels in width and 178 pixels in height: fl.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228});
The following example draws the oval without a fill: fl.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228}, true);
The following example draws the oval without a stroke: fl.getDocumentDOM().addNewOval({left:72,top:50,right:236,bottom:228}, false, true);
See also |