Firefox + adobe flash plugin still works (well, it works for me anyway... I'm on FF 56 still). Slap it into a container (firejail works) and you are done. No need to reinvent the wheel.
If you don't want the closed source solution and the Firefox dependency, there's also gnash. Slap gnash on a container and you're set. The only niggle is that gnash is... kinda bad. It's slow and a bunch of swf files I have don't work (some don't work at all, others have weird graphical problems).
If you want to contribute, gnash would be a good candidate, I guess: