Macromedia Flash SWF / Scaleform GFX: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
||
| Line 7: | Line 7: | ||
=== Format Specifications === | === Format Specifications === | ||
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width: | <div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:900px; overflow:auto;"> | ||
<pre> | <pre> | ||
// SWF/GFX file format | // SWF/GFX file format | ||
Revision as of 00:58, 5 February 2022
SWF, GFX
- Format Type : Animation / Container
- Endian Order : Little Endian
Format Specifications
// SWF/GFX file format
// little endian
// header
3 bytes (char) - signature // "FWS" - uncompressed *.SWF file
// "CWS" - compressed *.SWF file (SWF 6 and later only)
// "ZWS" - LZMA compressed *.SWF file (SWF 13 and later only)
// "GFX" - same as FWS, but used mostly in Scaleform middleware files (*.GFX)
// "CFX" - same as CWS, but used mostly in Scaleform middleware files (*.GFX)
1 byte (uint8) - version // e.g. 0x06 for version 6
0x0F for version 15
0x20 for version 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).
- Scaleform GFX files share file format with the SWF Flash movies.
Games
List of games using this format:
- Batman: Arkham Asylum (PC)
- Mafia 3 (*.GFX) (PC) (signature: "GFX") (version: 15)
- The Henry Stickmin Collection (*.SWF) (signature: "CWS") (version: 32)
Compatible Programs
- Adobe AIR
- Flash Decompiler Trillix
- Flash Player
- JPEXS Free Flash Decompiler
- Sothink SWF Decompiler