Frames 

 No Frames

Previous Element
RadialGradient

Next Element
Remove


Rect

Draw a rectangle from the specified top-left position using the specified width and height. If optional radii are specified, then these are used to draw arcs at each of the corners of the rectangle. If only a single radius is specified then both are assumed to be the same.

Attributes

x X coordinate for the top-left position.
TypeFloat
Default Value0
y Y coordinate for the top-left position.
TypeFloat
Default Value0
widthWidth of the rectangle.
TypeFloat
Default Value0
heightHeight of the rectangle.
TypeFloat
Default Value0
rx Optional x-axis radius of the arc to use for rounded corners. If this value is greater than width/2 then the value of width/2 is used.
TypeFloat
Default Value0
ry Optional y-axis radius of the arc to use for rounded corners. If this value is greater than height/2 then the value of height/2 is used.
TypeFloat
Default Value0

Child Elements

None

Parent Elements

Edges
Glyph
ShapeTransform

Examples

Timeline Replace Examples
ImageFill Examples
Rectangle Example
Animate simple symbols on timeline
Timeline Color Transformations
MorphShape Example
Dynamic MovieClip Clipping
Button Example
Button DragTarget Example
Button Sound Example
Example Of MovieClip classes
Example Of MovieClip classes and scripted animations
SVG Arc Example in RVML
Shape Transform Examples

Previous Element
RadialGradient

Next Element
Remove