Live data from Hacker News

Javascript or Flash Widgets debate. Help me choose what to use.

news.ycombinator.com

1–10 of 13 posts

Re: Javascript or Flash Widgets debate. Help me choose what to use.

#3
I personally prefer lightweight javascript over the often slower flash equivalent. Rich UI functionality is generally easier to implement in flash though. But this can be a heated debate so watch out..

Some things to consider: The iPhone supports javascript but not flash, Adobe does not have flash out for x86_64 Linux, Flash is a proprietary closed platform.

Re: Javascript or Flash Widgets debate. Help me choose what to use.

#4

I personally prefer lightweight javascript over the often slower flash equivalent. Rich UI functionality is generally easier to implement in flash though. But this can be a heated debate so watch out.. Some things to consider: The iPhone supports javascript but not flash, Adobe does not have flash out for x86_64 Linux, Flash is a proprietary closed platform.

hmm? flash seems faster and more responsive than javascript manipulating browser DOM trees.

Re: Javascript or Flash Widgets debate. Help me choose what to use.

#5

I personally prefer lightweight javascript over the often slower flash equivalent. Rich UI functionality is generally easier to implement in flash though. But this can be a heated debate so watch out.. Some things to consider: The iPhone supports javascript but not flash, Adobe does not have flash out for x86_64 Linux, Flash is a proprietary closed platform.

"slower flash equivalent" ?

The basic file size of an empty swf file is approximately 35 bytes.Apart from this 35 bytes, everything else is developer contribution. The file size depends on what kind of assets you want to embed in your flash widget. If you embed more images,mp3s etc., the file size will increase. One of the greatest strengths of flash is the speed at which the 'flash virtual machine' initializes. A swf file churned out by a good developer will perform well.

Having said that i would personally prefer to go with a javascript version, if the widget doesnt require video or hardcore visual effects.Why lock yourself in a closed piece of software unless its acutely necessary ?

A major disadvantage of using flash is that, flash by default will place itself on top of everything else in a webpage. A work around for this is to set wmode as "transparent". But this will drastically reduce performance of flash widget in Gecko browsers.And hence, as far as possible, use javascript.

Re: Javascript or Flash Widgets debate. Help me choose what to use.

#7
post #4

I personally prefer lightweight javascript over the often slower flash equivalent. Rich UI functionality is generally easier to implement in flash though. But this can be a heated debate so watch out.. Some things to consider: The iPhone supports javascript but not flash, Adobe does not have flash out for x86_64 Linux, Flash is a proprietary closed platform.

hmm? flash seems faster and more responsive than javascript manipulating browser DOM trees.

I was curious, so did some searching: http://oddhammer.com/actionscriptperformance/set4/

Flash 9 is considerably faster than previous flash versions at most tasks, and is indeed faster than javascript for the most part too. Doesnt paint the whole picture, but at least gives an idea.

Re: Javascript or Flash Widgets debate. Help me choose what to use.

#8

I personally prefer lightweight javascript over the often slower flash equivalent. Rich UI functionality is generally easier to implement in flash though. But this can be a heated debate so watch out.. Some things to consider: The iPhone supports javascript but not flash, Adobe does not have flash out for x86_64 Linux, Flash is a proprietary closed platform.

"slower flash equivalent" ? The basic file size of an empty swf file is approximately 35 bytes.Apart from this 35 bytes, everything else is developer contribution. The file size depends on what kind of assets you want to embed in your flash widget. If you embed more images,mp3s etc., the file size will increase. One of the greatest strengths of flash is the speed at which the 'flash virtual machine' initializes. A sw…

Keep hearing the same 'closed software' regarding flash and I don't understand why. There are quite a few open source platforms that produce swfs (open laszlo, aptana, even flex is open source now). Regarding the flash player, it is not any more closed software than IE is.

Also isn't it nice not to have to write javascript code for each browser that exists out there?

Re: Javascript or Flash Widgets debate. Help me choose what to use.

#9
Pretty much everyone has JavaScript. While for what you are doing, probably everyone in your target audience has Flash, but keep in mind for different versions the % of the general population that has it installed is not 100%: http://www.adobe.com/products/player_census/flashplayer/vers...

Adobe (who has an incentive to inflate their numbers though I'm not saying they are) puts Flash 9 at 84.0%. Below that you get into the high 90s. But if your whole product is based on a viral loop, and you can achieve the same thing with JavaScript, that few % can be important when compounded over time.

Re: Javascript or Flash Widgets debate. Help me choose what to use.

#10

I personally prefer lightweight javascript over the often slower flash equivalent. Rich UI functionality is generally easier to implement in flash though. But this can be a heated debate so watch out.. Some things to consider: The iPhone supports javascript but not flash, Adobe does not have flash out for x86_64 Linux, Flash is a proprietary closed platform.

"slower flash equivalent" ? The basic file size of an empty swf file is approximately 35 bytes.Apart from this 35 bytes, everything else is developer contribution. The file size depends on what kind of assets you want to embed in your flash widget. If you embed more images,mp3s etc., the file size will increase. One of the greatest strengths of flash is the speed at which the 'flash virtual machine' initializes. A sw…

It's true that the Flash VM is quite fast itself, at parsing, rendering, etc. But Flash feels much more sluggish for most things. Try any largish interface in Flash to see for yourself. Imagine Gmail in Flash, it would be much less snappy. Flash is an entirely different platform inside your browser with all its own facilities. Javascript can be used in a lightweight way on top of the native HTML/image/CSS stuff your browser is so good at.

Post reply on HN