Frames 

 No Frames

Previous Element
Metadata

Next Element
Move


MorphShape

The MorphShape is the most complex symbol type to use. It defines a transformation between a source shape and a destination shape, transforming shape and style. There are several caveats to this process. Both the source shape and the destination shape must have the same number of drawing edges, and the styles changes must occur in the same relative location. Styles to be transformed must be of the same type and, in the case of ImageFills, must refer to the same image. For Gradient Fills, both GradientFills must have the same number of gradient points.
The MorphShape is defined by first defining the style pairs that correspond to the source and destination styles for the two shapes. The FromShape and ToShape are then defined. The FromShape, as well as containing Edge definitions, contains all SetStyle elements for both the FromShape and the ToShape. It is assumed that location for the definition of a source style in the FromShape is the same location as the corresponding definition of the destination style in the ToShape. The ToShape, therefore, contains no SetStyle elements at all, only drawing elements.
To display the shape it must be places on the stage with a ratio value between 0 and 65535. A value of 0 will display only the FromShape, a value of 65535 will display only the ToShape. Any other intermediate value will display an interpolation between the two shapes. For more information on this see the PlaceCommand element.

Attributes

id A unique name for the symbol within the movie.
TypeString
bounds Optional attribute specifying the bounding rectangle of the MorphShape specified as 'bounds( minX, minY, maxX, maxY)'. This attribute can be produced on decompilation as a guide to the actual runtime bounds of the symbol but it is not referenced by the RVML compiler. This is useful for the timeline elements (Place, Alter, Replace) to specify new scaling attributes for the MorphShape symbol.
Value Template bounds(Coord, Coord, Coord, Coord)
TypeFloat

Child Elements

Desc
Metadata
CommonLineStyles
CommonFillStyles
FromShape
ToShape

Parent Elements

Definitions

Examples

Timeline Replace Examples
Square to Circle Morph Example
MorphShape Example

Previous Element
Metadata

Next Element
Move