Library:Scaleform GFx
Appearance
| On this wiki | Facts · Code · Notes · Topics |
|---|
Scaleform GFx is Autodesk's (formerly Scaleform Corp.) Flash-based game UI middleware; its movies are SWF files whose header signature is GFX (uncompressed) or CFX (compressed) instead of FWS or CWS, with extra tags such as DefineExternalImage2 and DefineCompactedFont.
Identification
- File header: a Scaleform movie starts with
GFX(uncompressed) orCFX(compressed) in place of the FlashFWS/CWS; the rest of the 8-byte header follows the SWF layout described at Format:SWF#Header (version byte, then the length). The open ffdec decompiler (JPEXS) recognises both: it lists "GFX" as uncompressed ScaleForm GFx and "CFX" as compressed ScaleForm GFx among its signatures, and sets agfxflag when bytes 1 and 2 areFandX. See Fact:Scaleform GFx/magic/GFX CFX signatures. - GFx-specific tags known to ffdec:
DefineExternalImage2,DefineCompactedFontandExporterInfo. They point at textures stored outside the movie (DDS/TGA/images in the game's archives) and at packed font data, so a GFX file alone often lacks its images. - Game-side: Unverified: executables contain strings with the
GFx/GFCprefix (class names such as GFx::Movie, GFx::Value) and the movie loader DLL may be named likeScaleformorGFxPlayer; files are commonly named .gfx and sit in a UI or Interface folder (Skyrim uses .swf for Scaleform movies in that folder, so the extension alone does not tell, read the first three bytes). - Unverified: compression of CFX is zlib like CWS; check by inflating the body after the 8-byte header.
Practical notes
- Tools that open SWF often handle GFX if they know the signature; the Flash-compatible tags (DefineShape, DoAction, DoABC) are shared with Format:SWF.
- A standard SWF decompiler may refuse a GFX file; changing the first byte to F (and the compression marker) is a lead, not a recipe: Unverified.
Sources
- jindrapetrik/jpexs-decompiler (GPL-3): source file SWF.java was read for the signature list, not copied.