构建需要 Rust 最新稳定版,且 PATH 中要有 java,用于编译 ActionScript 3 内置类库;Linux 需先安装 pkg-config、libasound2-dev、libudev-dev、fontconfig、freetype、openssl 等依赖;exporter 需要硬件加速,无 GPU 环境可能无法出图。
ruffle
ruffle-rs活跃维护用 Rust 重写的 Flash Player 模拟器,能在浏览器和桌面端直接运行 SWF 文件,让老 Flash 内容在官方停支持后继续可用。
A Flash Player emulator written in Rust
cargo run --release --package=ruffle_desktop
cargo run --release --package=ruffle_desktop -- test.swfREADME 未说明具体显存或 GPU 型号要求;exporter 工具目前需要硬件加速,但可无窗口运行。
用 Rust 写的 Flash Player 模拟器,让老 SWF 内容在桌面和浏览器里继续跑
用 Rust 重写的 Flash Player 模拟器,能在浏览器和桌面端直接运行 SWF 文件,让老 Flash 内容在官方停支持后继续可用。
核心能力
- 用 Rust 实现 Flash 模拟器,支持 ActionScript 1/2/3
- 通过 WebAssembly 同时覆盖桌面端与网页端
- 提供浏览器扩展,可直接在网页中播放 SWF
- 附带 scanner 工具批量解析 SWF 并输出 CSV 报告
- 附带 exporter 工具把 SWF 渲染成 PNG 截图
容易踩的坑
- nightly-2026-11-08Nightly 2026-11-08pre-release最新正式版2026-11-08 · 2026-11-08 00:09 UTC
What's Changed
- desktop: Disable egui's keyboard UI zoom by @torokati44 in https://github.com/ruffle-rs/ruffle/pull/25123
- Make allowNetworking testable and throw in AVM2 navigateToURL by @evilpie in https://github.com/ruffle-rs/ruffle/pull/25102
Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-07...nightly-2026-11-08
- nightly-2026-11-07Nightly 2026-11-07pre-release2026-11-07 · 2026-11-07 00:10 UTC
查看更新说明
What's Changed
- build(deps): bump the cargo-minor group with 2 updates by @dependabot[bot] in https://github.com/ruffle-rs/ruffle/pull/25116
- tests: Add swfasm compiler for crafting SWFs by @kjarosh in https://github.com/ruffle-rs/ruffle/pull/25073
- avm1: Implement Video.width and Video.height by @torokati44 in https://github.com/ruffle-rs/ruffle/pull/25119
- chore: Bump h263-rs to latest git master by @torokati44 in https://github.com/ruffle-rs/ruffle/pull/25094
- avm2: Implement a dead store elimination optimization pass by @Lord-McSweeney in https://github.com/ruffle-rs/ruffle/pull/25035
Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-06...nightly-2026-11-07
- nightly-2026-11-06Nightly 2026-11-06pre-release2026-11-06 · 2026-11-06 00:11 UTC
查看更新说明
What's Changed
- avm2: Fix PerspectiveProjection projectionCenter assignment by @cmdocmd in https://github.com/ruffle-rs/ruffle/pull/25108
- chore: Bump ashpd to 0.14, and the zbus crate family to 6.x by @torokati44 in https://github.com/ruffle-rs/ruffle/pull/25110
Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-04...nightly-2026-11-06
- nightly-2026-11-04Nightly 2026-11-04pre-release2026-11-04 · 2026-11-04 00:09 UTC
查看更新说明
What's Changed
- docs: Require human authorship of commits in the AI policy by @kjarosh in https://github.com/ruffle-rs/ruffle/pull/25088
Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-03...nightly-2026-11-04
- nightly-2026-11-03Nightly 2026-11-03pre-release2026-11-03 · 2026-11-03 00:11 UTC
查看更新说明
What's Changed
- avm2: Fire the root movie's final progress event after frame 1 by @einsz in https://github.com/ruffle-rs/ruffle/pull/25051
- build(deps): bump encoding_rs from 0.8.42 to 0.8.44 in the cargo-minor group by @dependabot[bot] in https://github.com/ruffle-rs/ruffle/pull/25085
New Contributors
- @einsz made their first contribution in https://github.com/ruffle-rs/ruffle/pull/25051
Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-02...nightly-2026-11-03
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Ruffle
Ruffle is an Adobe Flash Player emulator written in the Rust programming language. Ruffle targets both the desktop and the web using WebAssembly.
Table of Contents
Project status
Ruffle supports ActionScript 1, 2 and 3 pretty well, but it's still not finished by any means. Please report any issues in the Issue Tracker.
Using Ruffle
The easiest way to try out Ruffle is to visit the web demo page, then click the "Select File" button to load a SWF file of your choice.
Nightly builds of Ruffle are available for desktop and web platforms.
For more detailed instructions, see our wiki page.
Building from source
Prerequisites
- Latest stable channel of Rust
- Java, available on your PATH as
java(required for building the library containing the builtin Flash classes for ActionScript 3)
Linux prerequisites
The following are typical dependencies for Linux:
-
Ubuntu/Debian:
sudo apt install pkg-config libasound2-dev libudev-dev libfontconfig-dev libfreetype6-dev libssl-dev default-jre-headless g++ -
Fedora/RHEL:
sudo dnf install pkgconf-pkg-config alsa-lib-devel systemd-devel fontconfig-devel freetype-devel openssl-devel java-latest-openjdk-headless gcc-c++
Desktop
Build
Use the following command to build and run the desktop app:
cargo run --release --package=ruffle_desktop
To run a specific SWF file, pass the SWF path as an argument:
cargo run --release --package=ruffle_desktop -- test.swf
To build in debug mode, simply omit --release from the command.
Desktop has a few optional features which you can specify via --features, comma separated:
tracy: Enables profiling to Tracy. You may need to expand the log filter to see everything, e.g.RUST_LOG="warn,ruffle=debug"tracy_images: Enables Tracy frame captures. Impliestracy.tracy_avm: Enables profiling AVM execution with Tracy. Impliestracy.render_debug_labels: Enables debug labels during rendering, useful for debugging graphics with renderdoc or similar.
macOS
Ruffle desktop can be built from our Homebrew Tap:
brew install --HEAD ruffle-rs/ruffle/ruffle
Note: because it is HEAD-only, you'll need to run brew upgrade --fetch-HEAD ruffle each time you want to update.
Web or Extension
Follow the instructions in the web directory for building either the web or browser extension version of Ruffle.
This project is tested with BrowserStack.
Android
Follow the instructions in the ruffle-android project for building the Android application of Ruffle.
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 --release --package=ruffle_scanner -- scan folder/with/swfs/ results.csv
Exporter
If you have a SWF file and would like to capture an image of it, you may use the exporter tool. This currently requires hardware acceleration, but can be run headless (with no window).
cargo run --release --package=exporter -- path/to/file.swfcargo run --release --package=exporter -- path/to/file.swf path/to/screenshots --frames 5
Structure
core- core emulator and common codeswf- SWF and ActionScript parserdesktop- desktop client (useswgpu-rs)web- web client and browser extension (useswasm-bindgen)render- various rendering backends for both desktop and webvideo- video decoding backendsflv- Flash Video decoderwstr- a Flash-compatible implementation of stringsscanner- a utility to bulk parse SWF filesexporter- a utility to generate PNG screenshots of a SWF file
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:
License
Ruffle is licensed under either of
- Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (http://opensource.org/licenses/MIT)
at your option.
Ruffle depends on third-party libraries under compatible licenses. See LICENSE.md for full information.
Contributing
Ruffle welcomes contribution from everyone. See CONTRIBUTING.md for help getting started.
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.
The entire Ruffle community, including the chat room and GitHub project, is expected to abide by the Code of Conduct that the Rust project itself follows.