A Flash Player emulator written in Rust
Go to file
Mike Welsh d7393dc81d core: Add DisplayObjectFlags::TransformedByScript
This is set when a DisplayObject is dynamically moved by AS code,
which causes further modification from PlaceObject tags to be
ignored.
2019-12-15 10:17:33 -08:00
.circleci ci: Bump cache version 2019-11-26 12:35:33 -08:00
.dependabot chore: Add dependabot for js 2019-12-11 10:21:59 -08:00
assets docs: Add sponsors link to README 2019-12-10 18:07:51 -08:00
core core: Add DisplayObjectFlags::TransformedByScript 2019-12-15 10:17:33 -08:00
desktop build(deps): bump cpal from 0.10.0 to 0.11.0 2019-12-11 18:31:40 +00:00
scanner build(deps): bump structopt from 0.3.4 to 0.3.5 2019-11-25 10:53:04 +00:00
swf avm2: Improve error when reading invalid opcode 2019-12-10 11:26:58 -08:00
web build(deps): bump jpeg-decoder from 0.1.17 to 0.1.18 2019-12-11 18:21:42 +00:00
.gitattributes chore: Add gitattributes to normalize line endings 2019-10-11 16:53:36 -07:00
.gitignore chore: Add Cargo.lock 2019-11-17 17:36:21 -05:00
CONTRIBUTING.md chore: Renormalize line endings in misc files 2019-10-11 16:53:36 -07:00
Cargo.lock build(deps): bump cpal from 0.10.0 to 0.11.0 2019-12-11 18:31:40 +00:00
Cargo.toml core: Add enum_trait_object proc macro 2019-12-10 01:36:01 -08:00
LICENSE_APACHE Initial commit 2019-04-25 10:52:22 -07:00
LICENSE_MIT Initial commit 2019-04-25 10:52:22 -07:00
README.md docs: Add sponsors link to README 2019-12-10 18:07:51 -08:00
rustfmt.toml chore: Add rustfmt.toml and rustfmt pass 2019-08-26 16:38:48 -07:00

README.md

Ruffle

Travis Build Status Ruffle Discord
website | demo | nightly builds | wiki

Ruffle

Ruffle is an Adobe Flash Player emulator written in the Rust programming language. Ruffle targets both the desktop and the web using WebAssembly.

Project status

Ruffle is in the proof-of-concept stage and can currently run early Flash animations. ActionScript support is still forthcoming; for more info, read the project roadmap.

Building from source

Follow the official guide to install Rust for your platform.

Desktop

  • cargo run --package=ruffle_desktop -- test.swf

Web

Running the web demo

Building the NPM package

  • cd web
  • wasm-pack build

Scanner

If you have a collection of "real world" SWFs to test against, the scanner may be used to benchmark ruffle's parsing capabilities. Provided with a folder and an output filename, it will attempt to read all of the flash files and report on the success of such a task.

  • cargo run --package=ruffle_scanner -- folder/with/swfs/ results.csv

Structure

  • core contains the core emulator and common code
  • desktop contains the desktop client (uses glium)
  • web contains the web client (uses wasm-bindgen)
  • scanner contains a utility to bulk parse swf files

Sponsors

You can support the development of Ruffle via GitHub Sponsors. Your sponsorship will help to ensure the accessibility of Flash content for the future. Thank you!

Sincere thanks to the diamond level sponsors of Ruffle:

Newgrounds.com

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.