Macromedia Flash SWF

From XentaxWiki
Jump to: navigation, search

SWF


Format Specifications

// SWF file format

// little endian

// header
3 bytes (char) - signature  // "FWS" - uncompressed file
                            // "CWS" - compressed file (SWF 6 and later only)
                            // "ZWS" - LZMA compressed SWF (SWF 13 and later only)
1 byte (uint8) - version  //  e.g. 0x06 for SWF 6
                                   0x20 for SWF 32
4 bytes (uint32) - total file size in bytes
x bytes - frame size
2 bytes (uint16) - frame rate
2 bytes (uint16) - frame count

// tags
num_of_tags *
{
   2 bytes (uint16) - tag type and length   // upper 10 bits - tag type
                                            // lower 6 bits - tag length
   x bytes - tag data
}

Full file format can be found here.

MultiEx BMS Script

Not written yet.

Notes and Comments

  • Files can be compressed with ZLIB compression (CWS signature) or with LZMA compression (ZWS signature).

Games

List of games using this format:

  • The Henry Stickmin Collection (*.SWF) (signature: "CWS") (version: 32)

Compatible Programs