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
eKusoshisut0
NOIDED

Posts: 6,288.3965
Threads: 102
Joined: 6th Mar 2010
Reputation: -0.51929
E-Pigs: 174.7326
Offline
Post: #2
RE: Javascript based Flash renderer
Very interesting indeed.

[Image: tumblr_mlae69vAW21rmerh9o1_400.gif]


More stuff
Steam Page
[Image: K7UVN.png]
Thanks to Vacui_Natale for making this awesome siggy.
[Image: cq8au.gif]
Thanks to Natalie for this sexy Mawaru Penguindrum sig. <3
[Image: ofusT.png][


    
[Image: 9252_s.gif]

(This post was last modified: 01/06/2010 08:59 PM by eKusoshisut0.)
01/06/2010 08:58 PM
Find all posts by this user Quote this message in a reply
Silvertie
Older, less cringe, still mad.
Fractal Insanity

Posts: 1,016.3688
Threads: 32
Joined: 9th Jun 2009
Reputation: -5.33618
E-Pigs: 32.7022
Offline
Post: #3
RE: Javascript based Flash renderer
I heard that HTML5 is supposed to do exactly what this javascript does. Is that just me, or is there truth in the madness?

"Books! I've read several on the subject!"
[Image: khadorsigfinal.jpg]
Silvertie: The Blog | A Door In Nowhere: The Webcomic
01/06/2010 10:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #4
RE: Javascript based Flash renderer
(01/06/2010 10:05 PM)Silvertie Wrote:  I heard that HTML5 is supposed to do exactly what this javascript does. Is that just me, or is there truth in the madness?
No it doesn't.  I think you're confusing it with people saying that HTML5(+JS) offers similar functionality to Flash - it doesn't actually do the same thing as Flash and it won't render it either.

I believe this piece of JS relies on some HTML5 anyway.
01/06/2010 10:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Silvertie
Older, less cringe, still mad.
Fractal Insanity

Posts: 1,016.3688
Threads: 32
Joined: 9th Jun 2009
Reputation: -5.33618
E-Pigs: 32.7022
Offline
Post: #5
RE: Javascript based Flash renderer
(01/06/2010 10:32 PM)ZiNgA BuRgA Wrote:  
(01/06/2010 10:05 PM)Silvertie Wrote:  I heard that HTML5 is supposed to do exactly what this javascript does. Is that just me, or is there truth in the madness?
No it doesn't.  I think you're confusing it with people saying that HTML5(+JS) offers similar functionality to Flash - it doesn't actually do the same thing as Flash and it won't render it either.

I believe this piece of JS relies on some HTML5 anyway.

Ahk. Wasn't sure if I'd heard that rumor right, anyway.
Looks like Macfa- I mean, Mac Enthusiasts get to enjoy more emulated, second-rate, last-year media.

"Books! I've read several on the subject!"
[Image: khadorsigfinal.jpg]
Silvertie: The Blog | A Door In Nowhere: The Webcomic
01/06/2010 11:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
PSPkiller
*The Sweaty Indian/Welsh Guy*

Posts: 2,393.2167
Threads: 251
Joined: 24th Jun 2007
Reputation: 0.56947
E-Pigs: 53.7911
Offline
Post: #6
RE: Javascript based Flash renderer
It says to disable Adblock? Is this because Adblock checks every dynamically created piece of web page as its created? I did notice that it ran a lot better whith Adblock disabled.

[Insert Signature Here]
02/06/2010 03:02 AM
Find all posts by this user Quote this message in a reply
Mr. Shizzy
ɯɹ˙ sɥızzʎ

Posts: 2,973.4020
Threads: 415
Joined: 21st Feb 2007
Reputation: -2.36574
E-Pigs: 160.1496
Offline
Post: #7
RE: Javascript based Flash renderer
I take it this will be a GOD send for the flashless iPad ?

PSP 2001 [TA-088v2]: 6.39 ME-9.7
[Image: 4kly6c1.gif]
Sig by Mr_Nick666
02/06/2010 05:39 AM
Find all posts by this user Quote this message in a reply
S7*
Sweet Dreams

Posts: 16,689.4373
Threads: 1,056
Joined: 3rd Apr 2007
Reputation: 14.29926
E-Pigs: 383.2289
Offline
Post: #8
RE: Javascript based Flash renderer
(02/06/2010 05:39 AM)Mr. Shizzy Wrote:  I take it this will be a GOD send for the flashless iPad ?

Read what Zinga said.

(01/06/2010 08:56 PM)ZiNgA BuRgA Wrote:  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.

So, yeah, it's interesting the he's been able to make such a thing but any reasonable real-world use seems unlikely.. [especially for the iPad ¬_¬]

May I also say such a thing should never reach the iPad after Apple blocked Adobe products from converting Flash to code that works on the iDevices. They really don't deserve it.
02/06/2010 06:39 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #9
RE: Javascript based Flash renderer
Actually, it can be useful for Flash based banner ads.  Probably not Flash based games, as they involve a bit of ActionScript, but basic ads which are just a slideshow, for example, probably work reasonably well through this JS emulation on the iPad.

In other words, you get all the downsides of Flash on the iPad :)
(This post was last modified: 02/06/2010 04:19 PM by ZiNgA BuRgA.)
02/06/2010 04:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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

 Quick Theme: