Skip to content
Rust and Typescript parsers for SWF
Branch: master
Clone or download
demurgos [all] Update test samples
Do not test against SWF files with uncertain licenses.
Latest commit 6aaee5b Apr 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
rs
test
tests/open-flash-db [all] Update test samples Apr 5, 2019
ts
.gitignore First commit May 8, 2017
.gitmodules
.travis.yml
LICENSE.md
README.md

README.md

Open Flash logo

SWF Parser

npm crates.io GitHub repository Build status

SWF parser implemented in Rust and Typescript (Node and browser). Converts bytes to swf-tree movies.

This library is part of the Open Flash project.

Usage

Goal

The goal is to provide a complete SWF parser. The initial implementation requires the movie to be fully buffered before parsing but incremental parsing (for streams) is planned. This parser should be easily embeddable: it is intended for SWF players, analysis tools or any other project having to manipulate SWF files.

Status

Still experimental but getting better.

The Rust and Typescript implementations are kept in sync. They both support the following kinds of tags: shape definitions, morph shape definitions, bitmaps, AVM1 actions, sprites, sound streams, control tags. It represents about two thirds of the SWF tags and is enough to play simple movies. Help is welcome to complete the parser.

Contributing

You can also use the library and report any issues you encounter on the Github issues page.

You can’t perform that action at this time.