Parameters
boundingRectangle
is added, in the format
and
values specify the location of the upper-left corner (e.g.,
left
top
represents the upper-left of the Stage), and the
the lower-right corner. Therefore, the width of the rectangle is the difference in value between
and
, and the height of the rectangle is the difference in value between
left
right
.
bottom
In other words, the rectangle bounds do not all correspond to the values shown in the
Property inspector. The
inspector, respectively. However, the
H values in the Property inspector. For example, consider a rectangle with the following
bounds:
{left:10,top:10,right:50,bottom:100}
This rectangle would display the following values in the Property inspector:
X = 10, Y = 10, W = 40, H = 90
An integer value from 0 to 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.
A Boolean value that, if set to
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
parameter is set to
bSuppressStroke
and
bSuppressFill
76
Objects
A rectangle that specifies the bounds within which the new rectangle
{left:value1,top:value2,right:value3,bottom:value4}
and
values correspond to the X and Y values in the Property
left
top
right
. This parameter is optional.
false
A Boolean value that, if set to
parameter is set to
true
are set to
bSuppressStroke
and
right
bottom
and
values don't correspond to the W and
bottom
, causes the method to create the shape
true
, 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. If both
, the method has no effect.
true
. The
left:0,top:0
values specify location of
and
top
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers