Login | Register

October 26th 2006 | Jens C Brynildsen

0 comments

 

 

Upcoming conferences

FITC Amsterdam 2012

FITC Amsterdam 2012

Amsterdam, Holland Feb 27 - Feb 28

Flash Gaming Summit 2012

Flash Gaming Summit 2012

San Fransisco, USA Mar 04 - Mar 04

BT Play

BT Play

Cologne, Germany Apr 24 - Apr 27

Integrating Flex Apps with Browsers and AJAX

I got in a little late on this presentation, but it outlined some of the problems coupling these two technologies and some solutions to these problems.

Jason Williams presenting
The FlexAjaxbridge was the first solution shown - coupling Flash Charts with HTML navigation. I had seen this example some weeks ago on his blog, but the thing I missed out back then was the fact that this was a mix of HTML and Flash. The examples looked so good that I actually thought everything was done in Flash. Well done when one does not notice the blend! That's how it should be done. He also showed an image viewer blending HTML with a dynamic 3D-ish navigation.

One of the problems with this approach is that Objects marshaled across the bridge are not released from memory, so be aware of this if you use the FlexAjaxBridge. This is likely to be solved in the next version. Next up was a brilliant comparison of Data Loading Metrics. Christophe Coenrats actually showed me a bit about this yesterday and it clearly shows that if your application will display a lot of data, you should consider using Flex rather than AJAX because of performance.

His metrics example pulls 5000 rows of data from a server using various technologies. The time indicated here is the combined load time and parse and render time and the example clearly shows the speed benefit that using a binary Flash protocol offers over standards based and human readable Ajax : Ajax HTML (6 sec), Ajax XML(20 sec), Ajax JSON (18 sec), Flex E4X (5.5 sec), Flex AMF (1 sec), Flex Paged (0.1 sec). This last technique is using Flex Data Services (FDS) and pulls in only 200 rows at a time, but as soon as the user scrolls down the Datagrid, Flex will go out to get the correct page of data. There is a small flicker every time the data set is loaded, but this is barely noticeable. This way you only download what the user needs, thus saving both bandwidth and data loading time. The paging is automatic if you are using FDS.

image

About Jens C Brynildsen

Jens has been working with Flash since version 3 came out. Since then, he's been an active member of the Flash community. He's created more than a hundred Flash games (thus the name of his blog) but he also creates web/standalone applications, does workshops and other consulting. He loves playing with new technology and he is convinced that the moment you stop learning you die (creatively speaking). Jens is also the Editor of this website.

Get new stories first

Click to follow us on Twitter!

 

Comments

No comments for this page.

Submit a comment

Only registered members can comment. Click here to login or here to register