Document.addnewrectangle() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

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 "
fl.getDocumentDOM().addNewPublishProfile("my profile");

document.addNewRectangle()

Availability
Flash MX 2004.
Usage
document.addNewRectangle( boundingRectangle, roundness
[, bSuppressFill [, bSuppressStroke ] ] )
Parameters
boundingRectangle
added. This parameter specifies a pixel location for
An integer value between 0 and 999 that specifies the roundness to use for the
roundness
corners. The value is specified as number of points. The greater the value, the greater the
roundness.
bSuppressFill
without a fill. The default value is
bSuppressStroke
rectangle without a stroke. The default value is
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
bSuppressStroke
bSuppressFill
A rectangle that specifies the bounds within which the new rectangle is
A Boolean value that, if set to
false
A Boolean value that, if set to
parameter is set to
parameter is set to
true
or
bSuppressStroke
.
,
left
top
, causes the method to create the shape
true
. This parameter is optional.
, causes the method to create the
true
. This parameter is optional.
false
, the rectangle is drawn without a fill. If the
true
, the rectangle is drawn without a stroke. Either
must be set to
false
:
my profile"
,
, and
.
right
bottom
or the method does nothing.
Document object
69

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents