Wednesday, June 29, 2011

Convert SWF Files to HTML5 with Google Swiffy

swiffy_logo.gif

Google has launched a new service called Swiffy available on Google Labs. Swiffy allows you to upload a SWF file, and Swiffy will convert it to an HTML5 version which will run in modern browsers with a high level of SVG support such as Chrome and Safari. It’s still an early version, so it won’t convert all Flash content, but it already works well on ads and animations.

Swiffy uses a compact JSON representation of the animation, which is rendered using SVG and a bit of HTML5 and CSS3. ActionScript 2.0 is also present in the JSON object, and is interpreted in JavaScript in the browser. This representation makes the Swiffy animations almost as compact as the original SWF files.