Google cooks up Swiffy which convert SWF files to HTML5

June 29, 2011 |  by  |  Google, Sites

Google Labs has built up Swiffy, which takes an SWF file and created an HTML5 version that will run in most current browsers (Chrome and Safari). The converted file is pretty close in size to the original; however, however Google quotes that the project is in infancy so it won’t convert your entire Flash library as of now. Though it still makes existing animations useful without starting from scratch. Simply save the HTML file that is generated and include it on your website using an < iframe > tag. When using the “Save as” option of your browser, use the “HTML only” or “page source” save option of your browser.

Google cooks up Swiffy which convert SWF files to HTML5

Swiffy converts Flash SWF files to HTML5, allowing you to reuse Flash content on devices without a Flash player (such as iPhones and iPads). Swiffy currently supports a subset of SWF 8 and ActionScript 2.0, and the output works in all Webkit browsers such as Chrome and Mobile Safari. If possible, exporting your Flash animation as a SWF 5 file might give better results. 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.

Swiffy supports many common SWF features such as vector graphics, embedded fonts, images and timeline animation. Basic ActionScript 2.0 code is also supported, but don’t expect to convert your favorite Flash game yet. In general, Swiffy supports most of the features in Flash 5, so exporting your file as a Flash 5 will give the best results. The Swiffy compiler will warn you when unsupported SWF features are encountered.

Leave a Reply

Comment moderation is enabled, no need to resubmit any comments posted.

Your Ad Here