There is a particular ActionScript 3 project I am very intested in: game-music-emu-flash. It compiles into a .swf to be used on a web page to play music files from many retro consoles such as the SNES.
I have been trying to convert the project to Haxe / OpenFL and have JS as the target. The thing is, I keep running into compilation errors that I am unable to comprehend or fix despite my best attempts. Among others, some of these errors are related to classes contained in a .swc file; I understand it should still be possible to use them directly from the file, but I have been unsuccessful so far.
I believe you can’t directly use a .swc library file and target HTML5/JS. It would work only on Flash target itself if I’m right. I think you’ll need to port the swc library code to Haxe/OpenFL to use it on your project.
Here is another person that used Emscripten. I was able to compile locally pretty quick once I setup Emscripten locally. I am still having a minor issue with cmake and SDL, but you can look at this guys project too for help.