How Flex can transform the user experience on the web

Now that the industry has turned its attention to the client-side and the user experience, the quality of web user interfaces can be expected to improve at a very fast pace after ten years of virtual hibernation.

In that context, Flex offers a series of unique features that can profoundly transform the way people interact with web applications. These features include:

  • Expressiveness (vector graphics)
  • Performance (JIT compiler)
  • Real time (binary sockets and pub/sub messaging)
  • Rich media (video and audio streaming)
  • Offline support (local storage and desktop client)

None of these features is unique in itself. What is unique is that all of them are available together in a ubiquitous and extremely lightweight runtime environment (the Flash virtual machine) that is available today in all major browsers across all major operating systems.

Expressiveness

One feature that sets Flex apart in terms of expressiveness is the availability of vector graphics. Using vector graphics, lines, shapes and images can be represented using geometrical formulas instead of bitmaps. Using Flex, you have full access to the vector graphics API, but most of the time you simply use the components in the Flex framework which already leverage vector graphics extensively.

For example, if you need to draw a red, semi-transparent panel with rounded corners, all you need to code is:



Although nice and concise, this first example is not revolutionary: You could get the same result by slicing images. Vector graphics, however, can have a more transformative impact on user interfaces: they allow you to stretch, shrink, rotate, flip, or change the shape of objects in any possible way. In other words, they allow you to make user interface objects behave like real life objects.

A simple example of an application leveraging vector graphics to make a user interface element look like a real life object is the Flickr roulette built by Ely Greenfield:

http://bridge.quietlyscheming.com/flickr/ajax

This is a proof-of-concept, but it shows the potential. Vector graphics are helpful in a wide variety of applications. For example, in a visual dashboard, they allow charting components to be redrawn and animated at the client-side, helping the end-user to better understand data trends and transitions. Check out a simple example here:

http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html

Imagine the user experience if every click or drill-down required the charting components to be regenerated at the server-side and then brought back to the client.
Vector graphics make these smooth and animated transitions possible. But again, you don’t have to deal with a low level drawing API: these behaviors are encapsulated in the charting components.

Performance

Poor performance and the lack of a just-in-time compiler are often pointed to as major shortcomings of the browser. This is another area where Flex and the Flash Virtual machine can make a difference. Flex applications are delivered to the client as bytecode, which is executed by the Flash Virtual Machine with the help of a JIT compiler. This can make a significant difference in code execution and enable “desktop applications”-like performance on the web.

Performance is critical for both consumer and business applications. In a consumer application, it helps produce a fluid user experience. In business applications, it can for example help process large amounts of data with “desktop applications”-like responsiveness while preserving the benefits of the web deployment model.

Real Time

The browser’s request/response model is not great at listening for events initiated by server processes or by other clients. The Flash Player supports binary sockets, enabling real time bi-directional communication with any socket server.

The Flex Message Service builds on top of this infrastructure and provides a complete publish/subscribe messaging solution, allowing messages to be exchanged, in real time, between thin clients and servers. The Flex Message Service also integrates with existing Enterprise solutions systems such as JMS-based systems.

The messaging and real time infrastructure available in Flex enables collaboration and data push applications to be built in a scalable and reliable manner while preserving the lightweight web deployment model.

Rich Media

Video and audio are fast becoming key components of many business and consumer applications. Video on the web is not new. However the user experience is often far from optimal: wrong version of the media player installed, disruptive multi-megabytes download to install the right version, limited options to interact with the video (beyond the traditional VCR buttons), limited interactions between the video and the rest of the application.

The Flash Player includes media playing and streaming capabilities. Because it is available on about 98% of computers connected to the Internet, it is in fact (and by far) the most ubiquitous media player on the web, which is why it is being adopted by the major video sites such as Google Video and YouTube.

Using Flex, video can be a lot more than the passive streaming experience we are often exposed to on the web… it can be tightly integrated with the rest of the application. The video can trigger events during playback, and drive the behavior of other components of the user interface. These capabilities enable a broad range of new innovative and highly interactive applications (interactive video tutorials, interactive “ask-the-expert” series, media portals, in-context videoconferencing/videochat, etc.)

Local Storage and Offline Support

Flex applications can store data at the client-side in a local data store (known as local shared object). The application can access (read/write) the local data store while disconnected from the network.

The lightweight desktop player currently under development (and code named Apollo) will also allow you to run Flex applications outside the browser. (You can find more information about Apollo here.)

Transforming the developer experience

There is one more aspect of Flex that deserves to be talked about. This one is not about transforming the user experience, but transforming the developer experience… Developing applications including the innovative capabilities listed above is actually easy. The Flex programming model is both powerful and elegant: a combination of an XML declarative language to layout the user interface of the application, and ActionScript, an ECMAScript-compliant programming language. The Flex programming model also includes a class library of 100+ components.

It’s hard to describe the productivity of a programming model with words, so here are a few examples:

You need to invoke a method in a Java object deployed in the middle tier and display the result in a DataGrid?




You need to generate a line chart using data retrieved from a Web service?



You need to stream video?




You need to parse an XML document and grab the value of the zip node in the 6th employee node? Simply use the following E4X (ECMAScript for XML) expression:

employees.employee[5].address.zip

You need to create an panel that can be expanded (using an animation)? Simply create a panel with multiple states:



	
		
	



You need to subscribe to a JMS topic and execute a method every time a message is published?





Summary

There are many other and more granular reasons to use Flex for building rich internet applications (Richard Ziade has a good list here), but at a high level, I think of expressiveness, performance, rich media, real time, and offline as the Flex features that can profoundly transform the user experience on the web.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • LinkedIn
  • StumbleUpon
  • Twitter
This entry was posted in Flex. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

144 Comments

  1. Posted February 5, 2008 at 2:45 pm | Permalink

    Recently a good friend of mine told me to go to the local pharmacy and buy some Sildenafil. I am very curious about what kind of medicine is this? Anyone can help?
    I will be very grateful to help me.

  2. Posted February 10, 2008 at 7:14 pm | Permalink

    flex is growing day by day.

  3. Posted March 17, 2008 at 1:22 am | Permalink

    Good services and products, very helpfull, simply greatest!

  4. Posted March 17, 2008 at 2:29 pm | Permalink

    Why don´t just act nice in forums and on boards?

    For me it seem´s like a lot of users are spreading to much garbage everytime they post something. Why are everybody complaining and using so many bad words? If we all try to keep a good tone it will be much nicer for everyone on this board.

    I don´t think we have to agree on every subject – but we have to show some respect for another opinions :)

    With the hope of respect for everyone …

    _____________________________________________
    Michelle ;)

    Don´t ask what I can do for your website but ask where you can link to mine pressemeddelelse website :)

  5. drMelanyJonsthonsq
    Posted March 22, 2008 at 2:33 pm | Permalink

    hi all people. please read this message about cat treatment and other interested fakt

  6. Posted May 12, 2008 at 1:12 am | Permalink

    Борьба мышей: Микки или Диддл?

    Где-то известны Покемоны, где-то – черепашки Ниндзя. А есть такой популярный герой – мышонок Diddl. С этим очаровательным существом делают плюшевые игрушки, сувениры подарки, канцелярские товары для детей, подарки детям и многое другое.

    Если Вы выбираете прикольный подарок для своего ребенка, то лучшего, чем это существо Вам не найти.

    Это что то среднее между мышонком и тушканчиком. Его имя знает все школьники в Европе.

    Это – Диддл (Diddl). Для того чтобы понять, насколько он популярен, достаточно зайти в любую школу. Вы тотчас же увидите его на всех предметах: карандашах, рюкзаках, сумках, пеналах

    Всего существует около 1000 товаров, со Diddlom. Даже сами создатели не могут объяснить, чем вызвана популярность Диддла.

    Теперь и в Росси появился детский интернет магазин где можно купить Товары Diddl, Diddlina, Galupy, Pimboli, Mimihopps

  7. Posted May 15, 2008 at 2:16 am | Permalink

    surely own organise appearance young acclaim following intense in addition once sit heat work cialis on top of odds Viagrums round viagra

  8. Icenenjoype
    Posted June 5, 2008 at 3:57 am | Permalink

    Здравствуйте господа.
    Есть предложение по кремнию.
    Продаем 2000 кг скрапа кремния низкоомного от 0,001 до 0,2-0,3 Ом*см, тип проводимости Р. Цена 125 долларов за 1 кг.
    Продаем скрап кремния около 1500-20000кг сопротивление от 0,5 и выше, тип Р. Цена 220 долларов по предоплате, и по факту поставки 350 долларов за 1 кг.
    Пластины кремниевые сопротивление от 40 Ом*см, объем около 2000 кг. Цена 350 долларов за 1 кг.

    Если предложение заинтересовало высылайте заявки на quarts2008@mail.ru

  9. Posted June 17, 2008 at 1:16 am | Permalink

    Hello

    Just make an order from this company
    http://www.blinklist.com/open/open.php?id=25197239

  10. Posted July 14, 2008 at 6:19 am | Permalink

    These home drug testing kits may be used in the workplace to test for temporary and pre-employment hiring, post-accident, reasonable cause, security, random and personal drug screening—within small and large companies or at collleges, for athletics, probation, on-site, construction, workplace, and remote sites—ALL with a simple urinalysis. Our concern is for your well being.

  11. Posted July 15, 2008 at 10:24 pm | Permalink

    Earn residual income with this step by step system to earn $2397.27 online everyday. Earn extra income , or earn income on a fulltime basis. How to earn income online now!
    This is an Internet business opportunity that shows step by step how to earn $2397.27 online everyday. The ultimate home based internet business , Recession Kicker
    is an internet based business opportunity designed to teach new internet marketers how to succeed with an internet home business. This internet business opportunity is designed to give hope and help to people that are tired of being victims to the current tough economy.

    What do you think?

  12. Posted July 15, 2008 at 11:13 pm | Permalink

    Recession Kicker- not a high paying job, but a high paying business you can run from home.
    Wanna make $2K/day? Better than the highest paying jobs, because you control your own time.

  13. Posted August 1, 2008 at 1:58 pm | Permalink

    Thank you so much, usefull +1

  14. Posted August 17, 2008 at 2:48 pm | Permalink

    Actual topic. Writing is worthy of attention.

  15. Posted August 22, 2008 at 5:10 pm | Permalink

    Nice forum!

  16. Posted August 22, 2008 at 5:10 pm | Permalink

    good thanks… ;)

  17. Posted August 22, 2008 at 5:11 pm | Permalink

    Thanks a lot

  18. Posted August 24, 2008 at 6:58 am | Permalink

    1rThank’s for greate post.6m I compleatly disagree with last post . kqb
    купить ламинат 2i

  19. Posted August 24, 2008 at 7:19 am | Permalink

    5xThank’s for greate post.9g I compleatly agree with last post. iox
    паркет и ламинат 7b

  20. Posted August 24, 2008 at 8:01 am | Permalink

    0pI’ll thingk about it.3f I compleatly agree with last post. gjp
    ламинат и паркет 6u

  21. Posted August 24, 2008 at 5:32 pm | Permalink

    0vThank’s.1r I compleatly agree with last post. kjp
    паркет 7n

  22. Posted August 25, 2008 at 1:08 am | Permalink

    3sThank’s for greate post.7g I compleatly disagree with last post . buq
    ламинат купить 1r

  23. Posted August 27, 2008 at 2:12 am | Permalink

    Every time it amaze me more and more what people can do with Flex/Flash See this webcam Free Adult Video chat application for example.

  24. Posted August 27, 2008 at 2:15 am | Permalink

    Every time it amaze me more and more what people can do with Flex/Flash See this webcam Free Adult Video chat application for example.

  25. Posted August 28, 2008 at 10:45 pm | Permalink

    Thanks a lot

  26. Posted August 31, 2008 at 3:31 am | Permalink

    In principle I agree, but there are some nyuansy, which require more detailed discussions.

  27. Posted October 5, 2008 at 2:44 am | Permalink

    Hello! It’s just ubeliavable INCREDIBLE porno videos collection! ! ! !!!

  28. Posted October 30, 2008 at 1:58 am | Permalink
  29. Posted October 30, 2008 at 1:58 am | Permalink
  30. Posted November 20, 2008 at 9:10 pm | Permalink

    thanks a lot

  31. Posted December 19, 2008 at 12:20 pm | Permalink
  32. Posted March 17, 2009 at 8:53 am | Permalink

    Flash Virtual machine can make a difference. Flex applications are delivered to the client as bytecode, which is executed by the Flash Virtual Machine with the help of a JIT compiler.

  33. Posted March 27, 2009 at 8:18 am | Permalink

    Hi.

    Its XRumer bot :)

    Where is my beer?!

  34. Posted April 10, 2009 at 10:29 am | Permalink

    Well, maybe but thats not always true.

    “The lightweight desktop player currently under development (and code named Apollo) will also allow you to run Flex applications outside the browser.”

    What if it were two times that much seeds?

  35. Posted June 19, 2009 at 8:48 am | Permalink

    I totally agree with you

  36. Posted July 29, 2009 at 1:07 am | Permalink

    Интересно. Вообще чтение вашего блога это не просто глупое просматривание новостей или чтениевсякой ерунды про то, чем человек сегодня занимался, а нахождение реально занимательной информации.

  37. Posted December 3, 2009 at 3:49 pm | Permalink

    thanks you admin islamiyet..

  38. Posted December 3, 2009 at 3:50 pm | Permalink

    thank you islami forum..

  39. Posted December 4, 2009 at 3:33 am | Permalink

    In principle I agree, but there are some nyuansy, which require more detailed discussions.

  40. Posted January 13, 2010 at 10:41 pm | Permalink

    good post admin..

  41. Posted January 19, 2010 at 12:56 am | Permalink

    Share your ideas by accessing the Adobe ConnectNow web conferencing service

  42. Posted January 19, 2010 at 12:58 am | Permalink

    Share your ideas by accessing

  43. Posted January 21, 2010 at 1:09 am | Permalink

    This is a great article. Sometimes it’s difficult to explain why Flex is so powerful to someone who is unfamiliar with it. So thank you.

  44. expesselp
    Posted February 14, 2010 at 3:28 am | Permalink

    Hey, just want to say hi. I’m new here.

14 Trackbacks

  1. By Deitte.com on August 10, 2006 at 6:39 am

    The Article to Send to Your Friends…

    Send this article to your friends and coworkers: http://coenraets.org/blog/2006/08/how-flex-can-transform-the-user-experience-on-the-web/ I don’t normally link to other articles, since so many people read blogs from MXNA, but this one is worth special…

  2. By Brian Cary » Blog Archive » links on August 19, 2006 at 10:24 pm

    [...] hiw Flex can transform the user experience on the web [...]

  3. By hardcore gay on December 8, 2006 at 1:53 am

    xlopcjeji xbvqxswnlm xyajvmkduq…

    ixlhqjeow fcvgsqqr ksqorsohp sewpcchgu…

  4. By nude porn on December 8, 2006 at 2:53 am

    hnherbujy diukquvcuka kflobbcaa…

    mpnemvzypbs ogdseup oowrfvwayg sterhgkagm…

  5. [...] Regarding whether Flex itself will take off in a bigger way, well, Coenraets has already covered that. [...]

  6. By play baccara on May 2, 2008 at 5:31 am

    downloads gratis…

    However first cash advance advance cash overnight…

  7. By poker spielen mit spielgeld on May 6, 2008 at 9:51 am

    free motorola mp3 ringtones…

    Preview bunny poker poker on line bonus…

  8. By partie poker net on July 5, 2008 at 2:50 pm

    www internet poker…

    Esscheint fair poker bonus partie poker net party poker games juegos de poker eroticos pacific poker com…

  9. By articles « Panduramesh’s Weblog on September 11, 2008 at 7:51 am

    [...] How Flex can transform the user experience on the web [...]

  10. By ARTICLES ON FLEX « Panduramesh’s Weblog on September 19, 2008 at 7:13 am

    [...] How Flex can transform the user experience on the web Architecture, Design Patterns, Refactoring, Etc Best Practice: Code Behind versus MXML Script [...]

  11. By Articles on FLEX « welcome nandhu on October 4, 2008 at 3:32 am

    [...]           How Flex can transform the user experience on the web [...]

  12. By Articles_on_FLEX « welcome nandhu on October 22, 2008 at 10:40 pm

    [...] How Flex can transform the user experience on the web [...]

  13. By ARTICLES ON FLEX « Adiflex’s Blog on October 25, 2008 at 6:03 am

    [...] How Flex can transform the user experience on the web Architecture, Design Patterns, Refactoring, Etc Best Practice: Code Behind versus MXML Script [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>