In July 2011, Google announced a new online tool called Swiffy to convert .swf files to HTML5. The converted html5 content can be viewed in any modern browser without needing a flash plugin to play.
Swiffy currently supports a subset of SWF 8 and ActionScript 2.0. Swiffy uses a compact JSON representation of the animation, which is rendered using SVG and a bit of HTML5 and CSS3.
Adobe Flash .fla files can be converted into HTML with Wallaby, an installable tool provided by Adobe as an experimental technology.
I tried to convert several .swf files, without success. The following errors occured :
- The ActionScript function clearInterval is not supported
- The ActionScript function setInterval is not supported
- The #initclip pragma is not supported
- Shape tweens are not supported
- The ActionScript method MovieClip.getBytesLoaded() is not supported
- The ActionScript method MovieClip.swapDepths() is not supported
- The ActionScript method MovieClip.getBytesTotal() is not supported
- The ActionScript method MovieClip.loadMovie() is not supported
- An unsupported ActionScript instruction was encountered