Have a Flash SWF File? convert it to HTML5 with Google Swiffy
google.com
google.com
The one HUGE drawback for me with swiffy is there was no standalone compiler that we could use and integrate into the site build. So we now have this manual step of converting the files on the (hopefully still functioning) swiffy website every time a change is required to the animation.
No sound, not much scripting but lots of timeline animation with masked images.
swf: 205kb html: 352kb
(not including the swiffy runtime.js)
Not bad considering all the images have to be base64 encoded.
Generated code looked... generated... But not too awful. You could probably do something with it if you needed to.
However - it's no worse than trying to modify a swf file. You just wouldn't unless you ran it through a decompiler first and I don't see why that wouldn't be possible here also.
In most cases you'd go back to the FLA file or the XML equivalent and modify that instead.
html: 209kb swf: 205kb
Does anyone know whether 'on the wire' gzip would give similar benefits?
1. Zip uses a different algorithm than gzip - the results are not necessarily equivalent.
2. If the HTML is static, which seems to be the case (since it's generated manually from the SWF), you can pre-gzip them instead of forcing the server to do it on demand - that'll reduce latency and CPU usage. Therefore "on the wire" is not really relevant.
Which is a horrible thing. Images there are like 20 canvas elements on a page drawing animated ads. I am sure Macbook fans would roar higher than Flash
Just for large project switching to an interpreted language like javascript with another layer of abstraction to emulate the flash API is too much of a performance hit.