Ruffle is a Rust-based implementation of a SWF player. It’s not 100% compatible, but it has decent AVM1 (ActionScript 1/2) and AVM2 (ActionScript 3) support already.
It also can be compiled to WebAssembly, making it possible to run Flash in the browser again.