Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just de-minified the source code and this thing is a seriously impressive piece of work. It reads the SWF binary in JavaScript, decodes it (including extracting embedded JPEGs, sound files etc) and then renders the same content using dynamically generated SVG - if you fire up the Web Inspector in Chrome while it's running you can actually see the different SVG properties changing as it runs.

To pull that off, the JavaScript includes a base64 decoder, unzipping code, a ton of byte manipulation stuff for dealing with the SWF format and a full-blown ActionScript bytecode interpreter!

I've posted the de-minified version as a Gist if anyone wants a look: http://gist.github.com/418177 - for educational purposes only since the code hasn't officially been released yet.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: