Choosing Between Flash & Ajax for Client-Side Apps

  • Thread starter Thread starter Ronnin
  • Start date Start date
  • Tags Tags
    Apps Flash
Click For Summary

Discussion Overview

The discussion revolves around the comparison between Flash and Ajax for developing client-side applications. Participants share their experiences and opinions on the capabilities, performance, and use cases of both technologies, particularly in the context of database front ends and multimedia applications.

Discussion Character

  • Debate/contested

Main Points Raised

  • Some participants note that Flash and Ajax serve fundamentally different purposes, with Flash being a self-contained program and Ajax being a set of techniques for server communication.
  • One participant suggests that Flash is more suitable for multimedia applications, while Ajax is better for web applications, emphasizing that if a task can be accomplished efficiently with JavaScript, it should be preferred.
  • Another participant highlights the advantages of Flash, such as its ability to create sockets for two-way communication, which contrasts with Ajax's polling method.
  • Some participants express concerns about Flash's loading speed compared to Ajax, with one participant stating that Ajax is better optimized for page use, although this claim is contested by others.
  • There is a discussion about the terminology used, with some participants pointing out that Flash is a software product while Ajax is a programming technique, which complicates direct comparisons.
  • One participant mentions that the load time of Flash can vary based on implementation, suggesting that neither technology is inherently superior in this regard.

Areas of Agreement / Disagreement

Participants express differing opinions on the performance and suitability of Flash versus Ajax, with no consensus reached on which technology is superior for client-side applications. The discussion remains unresolved regarding the optimal use cases for each technology.

Contextual Notes

Some statements reflect uncertainty about the definitions and comparisons being made, particularly regarding the optimization of programming techniques versus software products. The discussion also highlights varying experiences with loading times and implementation strategies.

Ronnin
Messages
168
Reaction score
1
I have been playing around with a couple projects of mine on again, off again for about a year now. I was thinking of dabbling with some client side applications and wanted to get some personal opinions from anyone who has used Flash or Ajax. Can anyone give me some insight if they have had to choose between the two. Most of my applications are pretty generic DB front ends that I have used either, VB, C#, or a Java applet, but I have found myself about Flash w/ Actionscript. Any thoughts?
 
Computer science news on Phys.org
They are fundementally failry different things.
Flash creates a self contained program downloaded and run in the browser.
Ajax is a set of techniques for allowing a web page to communicate back and forth to the server as parts of the page change.
Think of flash as more a replacement for a Java applet.

You can use Flash to stream content into a page, called Asynchronous Flash - and marketed as Ajax/Flash but it isn't really the same thing.
If you are prepared to target windows only and don't mind being on the cutting edge your could look at silverlight - this is MS's competitor to Flash which let's you run a limited .Net app inside a browser.
 
Last edited:
Flash and Javascript/Ajax share many of the same capabilities (and actually had the same syntax as well, in Actionscript 1).

Flash is widely available but a good rule of thumb is: if it can be done with javascript with good performance then use javascript. I would use Flash for drawing vector images, and manipulating audio/graphics. Flash 8 added some great image manipulation capabilities (e.g. you can specify matrix transformations to produce your own image effects/filters in real time).

Multimedia in general should be done with Flash (or Silverlight when it gets there).

In addition Flash has sockets - a very valuable resource. With flash sockets you can implement a stateful connection (i.e. where as in Ajax you have to query the server every x seconds, in Flash you can create a socket connection and have the server send data to the client whenever it needs to, there's two-way communication). There are some reverse-ajax frameworks that enable you to implement more socket-like connections in ajax - but these have some drawbacks.

Java applets i would only use for some extreme needs (such as accessing the user's file system, hardware devices, or for cross-domain socket connections) because the JRE is a big download, and because even for some quite simple tasks you end up having to sign your JAR's, which generates certificate prompts and security warnings. Also two-way java to javascript communication is not the easiest thing to implement - same goes for dynamically adding java applets to html pages with javascript. Finally, there isn't great compatibility between JRE versions - something that works in 1.4.1 does not always work in 1.5 (from my experience).
 
Job,
Thanks, that is some good input. I wasn't aware of the sockets in flash and I have a couple of applications in Java that make use of them. Good things to consider.
 
Flash is very similar to Ajax, but one notable difference is that Flash loads slowly, while Ajax is better optimized for page use. (In my opinion)
 
=CIA= h1tman said:
Flash is very similar to Ajax, but one notable difference is that Flash loads slowly, while Ajax is better optimized for page use. (In my opinion)

What?!
 
=CIA= h1tman said:
Flash is very similar to Ajax, but one notable difference is that Flash loads slowly, while Ajax is better optimized for page use. (In my opinion)

Yeah, that statement really doesn't make sense.
 
I meant page use as in webapps and such...sorry if it was misinterpreted. I just think Ajax works better for those types of applications.
 
Where besides web applications would you use Ajax and Flash?

I think the confusing thing was that you said that they're similar things, where one is a software product and the other is a programming technique. And it doesn't make sense to say that a programming technique is “optimized”.
 
  • #10
You're right, I didn't word that very well, sorry about that.
 
  • #11
Not to mention that you can load flash asynchronously in layers or components, so load time between Ajax and Flash driven applications is not independent of implementation. One isn't better than the other in that aspect by default - it will vary according to the application and its implementation.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 24 ·
Replies
24
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
8
Views
2K
Replies
28
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
13K
Replies
2
Views
1K