Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Library:Scaleform GFx

From ReverseEngineering.wiki
Library
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) or CFX (compressed) in place of the Flash FWS/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 a gfx flag when bytes 1 and 2 are F and X. See Fact:Scaleform GFx/magic/GFX CFX signatures.
  • GFx-specific tags known to ffdec: DefineExternalImage2, DefineCompactedFont and ExporterInfo. 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 / GFC prefix (class names such as GFx::Movie, GFx::Value) and the movie loader DLL may be named like Scaleform or GFxPlayer; 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.