swf2js is Flash Player Runtime Engine written in pure JavaScript.
This is a JavaScript FlashPlayer emulator that analyzes SWF files of Adobe Animate (Flash) in real time and converts them to HTML. It supports SWFs for Flex, Flash, Animate, and all platforms.