Frames 

 No Frames

Previous Element
SetStyle

Next Element
ShapeTransform


Shape

This defines a vector shape element. A Shape element is the parent element for all style definitions and vector drawing operations. A FillStyles element defines all fill styles for the shape, a LineStyles element defines all the line styles for the shape. All vector drawing operations are defined under an Edges element.

Attributes

id A unique name for the symbol within the movie.
TypeString
bounds The bounding rectangle of the shape specified as 'bounds( minX, minY, maxX, maxY)'. If the bounding rectangle is unknown, a value of 'auto' can be specified and the shape bounds will be calculated automatically. Incorrect specification of this may result in parts of the shape being occluded.
Value Template bounds(Coord, Coord, Coord, Coord)
TypeFloat
Default Valueauto
translateX An optional delta to add to every every X coordinate in the shape, providing an X-Axis translation.
TypeFloat
Default Value0
translateY An optional delta to add to every every Y coordinate in the shape, providing a Y-Axis translation.
TypeFloat
Default Value0
origin An optional attribute specifying where the origin of the shape should be relative to its bounding rectangle. This is the location that is used when placing and performing geometry transformations. Shapes are always transformed about their point of origin. The translateX and translateY attributes are evaluated before the origin attribute.
ValuestopLeft
topRight
bottomLeft
bottomRight
center
Default Valuetop-left

Child Elements

Desc
Metadata
LineStyles
FillStyles
Edges

Parent Elements

Definitions

Examples

CArcs Example
Shape Fill Examples
Shape Origin Example
Circle Examples
Dynamic MovieClip Clipping
Animate simple symbols on timeline
Color Specification Example
Timeline Color Transformations
Quadratic Curve Example
Color Gradient Examples
ImageFill Examples
Line Style and Scaling
Timeline Replace Examples
Shape Transform Examples
Clipping and Text Clipping Example
Button Example
Button DragTarget Example
Button Sound Example
Example Of MovieClip classes
Example Of MovieClip classes and scripted animations
Elliptical Arcs Example
Examples of Elliptical Arcs and Circular Arcs
SVG Arc Example in RVML
Defines simple symbol for export
Line Style Z-Ordering
Polygon Example
Simple Polyline Example
Rectangle Example

Previous Element
SetStyle

Next Element
ShapeTransform