unit dswf_appendix_a;
  // Example of a SWF file from
  //   SWF File Format Specification Version 19: Appendix A

{$MODE FPC}

interface

const
SWF_APPENDIX_A: array[0 .. 79 - 1] of Byte = (
 // Header
    $46, $57, $53, // 'FWS' (uncompressed)
    $03, // Version=3
    $4f, $00, $00, $00, // FileSize=79
    // FrameSize NBits=15 (first 5 bits), XMin, XMax, YMin, YMax
    $78, $00, $05, $5f, $00, $00, $0f, $a0, $00,
    $00, $0c, // FrameRate
    $01, $00, // FrameCount
 // SetBackgroundColor
    $43, $02, // Tag=9, Length=3
    $ff, $ff, $ff, // Color=$ffffff
 // DefineShape
    $bf, $00, // Tag=2, Length=extended
    $23, $00, $00, $00, // Length=35
    $01, $00, // ShapeId=1
    // ShapeBounds(NBits=14)=[2010,4910,1670,4010]
    $70, $fb, $49, $97, $0d, $0c, $7d, $50,
    $00, // FILLSTYLEARRAY=[]
    // LINESTYLEARRAY
    $01, // LineStyleCount
    $14, $00, // Width=20
    $00, $00, $00, // Color=$000000
    $01, // NumFillBits=0, NumLineBits=1
    // StyleChangeRecord Flags=StateNewStyles,StateMoveTo
    //    MoveBits=14 MoveDeltaX=4900 MoveDeltaY=1680
    //    FillStyle0=0 FillStyle1=0 LineStyle=1
    $25, $c9, $92, $0d, $21,
    // EdgeRecord: E S NumBits=13 H/V V   DeltaY=2320
    //             1 1 1011       0   1 . 01001000.10000
    $ed, $48, $87,
    // EdgeRecord: E S NumBits=13 H/V V   DeltaX=-2880
    //             1 1 1.011      0   0 . 101.00110000.00
    $65, $30, $3b,
    // EdgeRecord: E S NumBits=13 H/V V   DeltaY=-2330
    //             1 1 1011      .0   1   101101.1110000
    $6d, $e1,
    // EdgeRecord: E S NumBits=13 H/V V   DeltaX=2880
    //             1.1 1011       0   0   0.10110100.0000
    $d8, $b4, $00,
    // EndShapeRecord
    $00,
 // PlaceObject2
    $86, $06, // Tag=26, Length=6
    $06, // Flags=PlaceFlagHasMatrix,PlaceFlagHasCharacter
    $01, $00, // Depth=1
    $01, $00, // CharacterID=1
    $00,      // MATRIX=Identity
 // ShowFrame
    $40, $00, // Tag=1, Length=0
 // End
    $00, $00  // Tag=0, Length=0
);

implementation

end.
