| Introduction | Basic Types | Display List | Control Tags |
| Shapes | (Examples Shapes) | Gradients | Buttons |
| Sprites | Fonts and Text | Shape Morphing | Bitmap |
| Sounds | Actions | ActionScripts | Reference |
![]() |
FillStyleArray Field Type Comment FillStyleCount count = UI8 Count of fill styles FillStyleCountExtended If count = 0xFF count = UI16 Extended count of fill Styles.
Supported only for Shape2 and Shape3.FillStyles FillStyle[count] Array of fill styles
|
|
FillStyle Field Type Comment FillStyleType type = UI8
0x00 = solid fill
0x10 = linear gradient fill
0x12 = radial gradient fill
0x40 = tiled bitmap fill
0x41 = clipped bitmap fillType of fill style Color If type = 0x00 RGBA (if Shape3);
RGB (if Shape1 or Shape2)Solid fill color with transparency information GradientMatrix If type = 0x10 or 0x12 MATRIX Matrix for gradient fill Gradient If type = 0x10 or 0x12 GRADIENT Gradient fill BitmapID If type = 0x40 or 0x41 UI16 ID of bitmap character for fill BitmapMatrix if type = 0x40 or 0x41 MATRIX Matrix for bitmap fill
|
|
LineStyleArray Field Type Comment LineStyleCount count = UI8 Count of line styles LineStyleCountExtended If count = 0xFF count = UI16 Extended count of line Styles. LineStyles LineStyle[count] Array of line styles
|
|
LineStyle Field Type Comment Width UI16 Width of line in twips Color RGB (Shape1 or Shape2); RGBA (Shape3) Color value including alpha channel information for Shape3s
|
|
Shape Field Type Comment NumFillBits NfillBits = UB[4] Number of fill index bits NumLineBits NlineBits = UB[4] Number of line index bits ShapeRecords ShapeRecord[one or more] Shape records - see below
|
|
ShapeWithStyle Field Type Comment FillStyles FillStyleArray Array of fill styles LineStyles LineStyleArray Array of line styles NumFillBits NfillBits = UB[4] Number of fill index bits NumLineBits NlineBits = UB[4] Number of line index bits ShapeRecords ShapeRecord[one or more] Shape records - see below
|
![]() |
EndShapeRecord Field Type Comment TypeFlag UB[1] = 0 Non-edge record flag EndOfShape UB[5] = 0 End of shape flag
|
|
StyleChangeRecord Field Type Comment TypeFlag UB[1] = 0 Non-edge record flag StateNewStyles NewStyles = UB[1] New styles flag. Used by DefineShape2 and DefineShape3 only. StateLineStyle LineStyle = UB[1] Line style change flag StateFillStyle1 FillStyle1 = UB[1] Fill style 1 change flag StateFillStyle0 FillStyle0 = UB[1] Fill style 0 change flag StateMoveTo MoveTo = UB[1] Move to flag MoveBits If moveTo nMoveBits = UB[5] Move bit count MoveDeltaX If moveTo SB[nMoveBits] Delta X value MoveDeltaY If moveTo SB[nMoveBits] Delta Y value FillStyle0 If fillStyle0 UB[nFillBits] Fill 0 Style FillStyle1 If fillStyle1 UB[nFillBits] Fill 1 Style LineStyle If lineStyle UB[nLineBits] Line Style FillStyles If newStyles FillStyleArray Array of new fill styles LineStyles If newStyles LineStyleArray Array of new line styles NumFillBits If newStyles NfillBits = UB[4] Number of fill index bits for new styles NumLineBits If newStyles NlineBits = UB[4] Number of line index bits for new styles
|
|
StraightEdgeRecord Field Type Comment TypeFlag UB[1] = 1 This is an edge record StraightFlag UB[1] = 1 Straight edge always 1 NumBits NBits = UB[4] + 2 Number of bits per value GeneralLineFlag LineFlag = UB[1] General Line equals 1, Vert/Horz Line equals 0 DeltaX If lineFlag = 1 SB[nBits] X delta DeltaY If lineFlag = 1 SB[nBits] Y delta VertLineFlag If lineFlag = 0 vertFlag = SB[1] Vertical Line equals 1, Horizontal Line equals 0 DeltaX If vertFlag = 0 SB[nBits] X delta DeltaY If vertFlag = 1 SB[nBits] Y delta
|
|
CurvedEdgeRecord Field Type Comment TypeFlag UB[1] = 1 This is an edge record StraightFlag UB[1] = 0 Curved edge always 0 NumBits NBits = UB[4] + 2 Number of bits per value ControlDeltaX SB[nBits] X control point change ControlDeltaY SB[nBits] Y control point change AnchorDeltaX SB[nBits] X anchor point change AnchorDeltaY SB[nBits] Y anchor point change
|
|
DefineShape Field Type Comment Header RECORDHEADER Tag ID = 2 ShapeID UI16 ID for this character ShapeBounds RECT Bounds of the shape Shapes ShapeWithStyle Shape information
|
|
DefineShape2 Field Type Comment Header RECORDHEADER Tag ID = 22 ShapeID UI16 ID for this character ShapeBounds RECT Bounds of the shape Shapes ShapeWithStyle Shape information
|
|
DefineShape3 Field Type Comment Header RECORDHEADER Tag ID = 32 ShapeID UI16 ID for this character ShapeBounds RECT Bounds of the shape Shapes ShapeWithStyle Shape information
|
|
| Introduction | Basic Types | Display List | Control Tags |
| Shapes | (Examples Shapes) | Gradients | Buttons |
| Sprites | Fonts and Text | Shape Morphing | Bitmap |
| Sounds | Actions | ActionScripts | Reference |