Previous Element | Next Element |
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. | |
Type | Float | |
Default Value | 0 | |
y | Y coordinate for the top-left position. | |
Type | Float | |
Default Value | 0 | |
width | Width of the rectangle. | |
Type | Float | |
Default Value | 0 | |
height | Height of the rectangle. | |
Type | Float | |
Default Value | 0 | |
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. | |
Type | Float | |
Default Value | 0 | |
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. | |
Type | Float | |
Default Value | 0 |
Child Elements
None
Parent Elements
EdgesGlyph
ShapeTransform
Examples
Timeline Replace ExamplesImageFill 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 | Next Element |