SWF emitter implemented in Rust and Typescript (Node and browser).
swf-types movies to bytes.
This library is part of the Open Flash project.
The goal of this emitter is to enable the manipulation and compilation of SWF files. For example, the emitter is used by Open Flash to generate test samples.
The emitter guarantees that parsing back the result will return the same AST. If you find an example where this invariant is broken, please fill an issue: this is a bug. The same AST always produces the same output.
Most of the tags are implemented but some are still missing. Help is welcome to complete the emitter.
You can also use the library and report any issues you encounter on the Github issues page.