Post Reply 
Javascript based Flash renderer
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #1
Javascript based Flash renderer
Quite an interesting piece of work, despite being rather impractical to some degree:

Quote:Smokescreen demo: a Flash player in JavaScript. Chris Smoak’s Smokescreen, “a Flash player written in JavaScript”, is an incredible piece of work. It runs entirely in the browser, reads in SWF binaries, unzips them (in native JS), extracts images and embedded audio and turns them in to base64 encoded data:uris, then stitches the vector graphics back together as animated SVG. Open up the Chrome Web Inspector while the demo is running and you can see the SVG changing in real time. Smokescreen even implements its own ActionScript bytecode interpreter. It’s stated intention is to allow Flash banner ads to execute on the iPad and iPhone, but there are plenty of other interesting applications (such as news site infographics). The company behind it have announced plans to open source it in the near future. My one concern is performance—the library is 175 KB and over 8,000 lines of JavaScript which might cause problems on low powered mobile devices.
Source: http://simonwillison.net/2010/May/29/smokescreen/

For the uninitiated, Flash is already slow, although it's semi-compiled.  Now getting an interpreted language to emulate Flash... well, you can make that slow several times over.
(This post was last modified: 01/06/2010 08:57 PM by ZiNgA BuRgA.)
01/06/2010 08:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Javascript based Flash renderer - ZiNgA BuRgA - 01/06/2010 08:56 PM
RE: Javascript based Flash renderer - S7* - 02/06/2010, 06:39 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: