본문 바로가기

Lecture & Tip/Ajax_Flex[RIA관련]

Ajax vs Flash...

ajax와 flash에대한 맞대결은...여전히 인터넷 포럼들의 이슈인듯 하다..

자료를 찾아보니 작년 2월서부터의 자료도 있고..

많은 자료가 있던데..그중 하나를 발췌해왔다..

별표가 우위에 있다는 표시..

FeatureFlashAjax
Audio*Dynamically load audio. Support embedded flash audio.Supported only through external plug-ins (like Media Player).
Browser Integration Flash Player plug-in required. Flash is limited to a predefined rectangular area of the browser. *JavaScript natively supported by modern browsers. Simple interaction with any part of the browser.
Compatibility Issues *Minor variations between versions of Flash. Major compatibility differences between browser versions.
CSSLimited support.*Full Support (depending on browser).
Dynaic Content Generation Difficult. SWF is a pre-compiled closed format. Currently there is no language to describe SWFs. (Compare SVG, which is XML-based.)*HTML can be written out using just about any kind of Server technology. Dynamic image generation is more difficult, but is possible on some platforms (like PHP).
Programming Model *ActionScript 2.0 provides robust, java-like framework. JavaScript 2.0 not yet supported by any major browser. JS 1.5 not recommended for large OOP applications.
Raster (Bitmap) Graphics *Load static images dynamically. Support for JPG, GIF and PNG. Bitmap manipulation. Load static images dynamically.
Regular Expressions Not supported natively by AS 2.0, but open-source solutions are available. *Full support.
Server Integration *Many solutions available. Flash can communicate with ASP, PHP, ASPX and many other types of server scripts. Commercial solutions, like Flash Remoting, are also available that provide live connections to a database. Limited. Can communicate dynamically with server using IFRAME trick or XMLHttpRequest Object.
TextText API mimics some HTML functionality. *Powerful layout capabilities.
Vector Graphics *Full Support. None.
Video*Dynamically load FLV video files or playback embedded videos. Supported only through external plug-ins (like Media Player). Multiple Video Formats can be loaded.
XML*Full support. Not supported natively by JavaScript.


-----------------------------------

둘다 양날의 칼을 가진 것들...

두개의 선택은 아무래도 전적으로 유저의 몫....

서버 부하와 Bandwidth를 생각한다면 두말 할것 없이..ajax
멀티미디어 성능의 화려함을 원한다면 flash...

내가 보기에 두기술중 하나가 사라지기 보다는...

두개의 장점을 섞은 제 3의 것이 나오지 않을까?

뭐 어째뜬...느뤼는 flash쪽으로..가볼라한당..

물론 ajax도 공부하고...Vista등의 차기 explorer의 등장에서

XMLHttpRequest가 얼마나 호환이 될지의 Risk가 있지만...

여전히 매력적인 것이기에...

지금 탱크 알고리즘을 짜고 있다가..또 서핑병이 도져서;;

어서 집중해야지~