An Emulator's Journey
summary
A web Flash emulator called aafl is built that runs SWF files in-browser by extracting ActionScript bytecode, converting it to JavaScript via an interpreter and then using eval -> JIT so AS3 games perform natively; the project automates conversion at scale (one client required 3000 SWF files), ports titles like Bad Ice Cream and Breaking the Bank for Poki and Coolmath, and solves the nastiest interoperability problem: the timeline frame execution ordering and nested constructors so converted games behave correctly.
AI-written summary · about
chapters (21)
- 0:00Introduction to journey
- 1:26Open source importance
- 3:34Flash’s decline survival
- 5:42TypeScript and Away3D
- 7:14Porting games to Android
- 8:15Transpiling Flash to HTML
- 8:56Building first interpreter
- 10:00Introducing aafl project
- 10:43Converting SWF files
- 11:49Reverse engineering Flash
- 12:52Timeline execution chaos
- 14:16Making money from open source
- 17:06Languages and performance
- 18:49Interpreted vs compiled
- 20:12Just-in-time compilation
- 21:14Power of eval statement
- 22:20JIT for AS3 games
- 23:42Debugging strategies
- 25:52Unit tests and unknown bugs
- 26:12Coolmath Games partnership
- 27:37Closing and thanks
