| Introduction | Basic Types | Display List | Control Tags |
| Shapes | (Examples Shapes) | Gradients | Buttons |
| Sprites | Fonts and Text | Shape Morphing | Bitmap |
| Sounds | Actions | ActionScripts | Reference |
inbetween.x = start.x + (end.x - start.x) * ratio / 65535;
CurveControlDelta.x = StraightDelta.x / 2;
CurveControlDelta.y = StraightDelta.y / 2;
CurveAnchorDelta.x = StraightDelta.x / 2;
CurveAnchorDelta.y = StraightDelta.y / 2;
DefineMorphShape Field Type Comment Header RECORDHEADER Tag ID = 46 CharacterID UI16 ID for this character StartBounds RECT Bounds of the start shape EndBounds RECT Bounds of the end shape Offset UI32 Indicates offset to EndEdges MorphFillStyles MorphFillStyles Fill style information is stored in the same manner as for a standard shape, however each fill consists of interleaved information based on a single style type to accomadate morphing. MorphLineStyles MorphLineStyles Line style information is stored in the same manner as for a standard shape, however each line consists of interleaved information based on a single style type to accomadate morphing. StartEdges SHAPE Contains the set of edges and the style bits that indicate style changes (for example, MoveTo, FillStyle, and LineStyle.) Numer of edges must equal the number of edges in EndEdges. EndEdges SHAPE Contains only the set of edges, with no style information. Number of edges must equal the number of edges in StartEdges.
|
MorphFillStyles Field Type Comment FillStyleCount Count = UI8 Count of fill styles FillStyleCountExtended If count = 0xFF count = UI16 Extended count of fill styles. FillStyles MORPHFILLSTYLE[count] Array of fill styles
|
MorphFillStyle Field Type Comment FillStyleType type = UI8
0x00 = solid fill
0x10 = linear gradient fill
0x12 = radial gradient fill
0x41 = clipped bitmap fillType of fill style StartColor If type = 0x00 RGBA Solid fill color with transparency information for start shape EndColor If type = 0x00 RGBA Solid fill color with transparency information for end shape StartGradientMatrix If type = 0x10 or 0x12 MATRIX Matrix for gradient fill for start shape EndGradientMatrix If type = 0x10 or 0x12 MATRIX Matrix for gradient fill for end shape Gradient If type = 0x10 or 0x12 MORPHGRADIENT Gradient fill BitmapId If type = 0x40 or 0x41 UI16 ID of bitmap character for fill StartBitmapMatrix If type = 0x40 or 0x41 MATRIX Matrix for bitmap fill for start shape EndBitmapMatrix If type = 0x40 or 0x41 MATRIX Matrix for bitmap fill for end shape
|
MorphGradient Field Type Comment NumGradients nGrads = UI8 1 to 8 GradientRecords MORPHGRADRECORD[nGrads] Gradient records see below
|
MorphGradRecord Field Type Comment StartRatio UI8 Ratio value for start shape StartColor RGBA Color of gradient for start shape EndRatio UI8 Ratio value for end shape EndColor RGBA Color of gradient for end shape
|
MorphLineStyles Field Type Comment LineStyleCount count = UI8 Count of line styles LineStyleCountExtended If count = 0xFF count = UI16 Extended count of line styles LineStyles MORPHLINESTYLE[count] Array of line styles
|
MorphLineStyle Field Type Comment StartWidth UI16 Width of line in start shape in twips EndWidth UI16 Width of line in end shape in twips StartColor RGBA Color value including alpha channel information for start shape EndColor RGBA Color value including alpha channel information for end shape
|
| Introduction | Basic Types | Display List | Control Tags |
| Shapes | (Examples Shapes) | Gradients | Buttons |
| Sprites | Fonts and Text | Shape Morphing | Bitmap |
| Sounds | Actions | ActionScripts | Reference |