Format:Adobe Director (RIFX)
| On this wiki | Facts · Code · Notes · Topics |
|---|
Container of Macromedia/Adobe Director movies and casts (.dir, .dxr, .dcr, .cst, .cxt, .cct, and projector executables): an IFF-like RIFX file (XFIR when little-endian) with a memory map of four-character chunks, or an Afterburner-compressed FGDM/FGDC variant used for Shockwave web files; Lingo scripts are bytecode chunks (Lscr) with names in Lnam.
Identification
A movie file starts with the four bytes RIFX (big-endian, Macintosh) or XFIR (the same tag byte-swapped, little-endian, Windows). A u32 size follows (file size minus 8, in the file's byte order) and then a four-character type at offset 8: MV93 (movie), MC95 (cast), APPL (projector: the movie files are embedded in a File resource) or FGDM / FGDC (Afterburner-compressed movie / cast; Unverified: this is the form of published .dcr/.cct files). Projector executables and MacBinary files wrap such a stream at an offset. Everything inside is read with the byte order given by RIFX versus XFIR, so a tag such as Lscr appears reversed on disk in XFIR files. File extensions seen in tool documentation: DIR/DXR/DCR for movies, CST/CXT/CCT for casts (DXR and CXT are protected, DCR and CCT are published Shockwave files).
Layout
See Fact:Adobe Director (RIFX)/magic/RIFX header and the structure facts attached to this page.
- MV93/MC95/APPL: an
imapchunk right after the header points to themmapmemory map, a table of (tag, size, offset, flags) entries. Resource index (position in the table) is the id used by other chunks. - FGDM/FGDC: no mmap; the header is
Fver(version),Fcdr(zlib-compressed table of compression-type GUIDs),ABMP(zlib-compressed resource table), thenFGEI, the initial load segment holding the first resources; the other resources follow in the file, each compressed with the type the table names (zlib or stored). KEY*maps child chunks to parents (cast members to theirCASt, scripts and so on);CAS*lists the CASt resource ids of a cast library.- Script chunks:
Lctx(orLctX) is the script context linkingLscrscript bytecode chunks and theLnamname table. Unverified: the exact Lctx layout and the D7+ differences are not recorded here; ProjectorRays' ScriptContext reader is the reference.
Tools
- ScummVM's Director engine reads and runs these files.
- ProjectorRays (MPL-2.0) decompiles protected/published movies back to editable DIR/CST files with Lingo source.
Related
Format:SWF is a different product (Flash); Shockwave here means Director's web player. Protection (DXR/CXT) is recognition only on this wiki.
Code & repositories
- https://github.com/scummvm/scummvm @
3f4203f8833f12615b0df5fa27f19d3c30d3e5d8· license: GPL-3.0-or-later (declared by the contributor for the files used; GitHub reports GPL-3.0 for the repository)
ScummVM; engines/director/archive.cpp (RIFX, mmap, Afterburner) and lingo/lingo-bytecode.cpp (Lscr/Lnam, V4 opcodes).
Tested on: source read, not run: source read only · checked 2026-10-19; last activity 2026-10-18 - https://github.com/ProjectorRays/ProjectorRays @
6f9bcebf626b43719abe2affcbbcb041d154d666· license: MPL-2.0
ProjectorRays: Shockwave/Director decompiler (DCR/DXR/CCT/CXT to DIR/CST with Lingo source restored).
Tested on: source read, not run: source read only · checked 2026-10-19; last activity 2025-11-13; Note: the latest release ships binaries; the wiki links only the source, never the binaries