Wednesday, May 23, 2012    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Jul 2008 >>
S M T W T F S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Search

Categories
 • Acrobat (5) [RSS]
 • Adobe (117) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (66) [RSS]
 • AdobeMAX09 (39) [RSS]
 • AdobeMAX10 (34) [RSS]
 • AdobeMAX11 (28) [RSS]
 • AdobeMAX13 (1) [RSS]
 • AIR (299) [RSS]
 • Appearances (217) [RSS]
 • Books (86) [RSS]
 • CFEclipse (15) [RSS]
 • Cloud (1) [RSS]
 • ColdFusion (1483) [RSS]
 • ColdFusion Builder (23) [RSS]
 • Data Services (43) [RSS]
 • Fish Tank (5) [RSS]
 • Flash (368) [RSS]
 • Flex (565) [RSS]
 • Home Automation (5) [RSS]
 • HTML5 (36) [RSS]
 • JavaScript (3) [RSS]
 • Jobs (133) [RSS]
 • jQuery (15) [RSS]
 • JRun (14) [RSS]
 • Labs (63) [RSS]
 • LiveCycle (37) [RSS]
 • MAX (285) [RSS]
 • Mobile (257) [RSS]
 • PhoneGap (17) [RSS]
 • Regular Expressions (19) [RSS]
 • RIA (21) [RSS]
 • SQL (45) [RSS]
 • Stuff (554) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (167) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • Mark Doherty
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Entry / Main
July 29, 2008

AMF Preferred

As a general rule, you want to be using AMF for communication between Flash Player on the client (running a Flash or Flex app) and your back-end server (unless you need messaging and push and data management services, in which case LiveCycle Data Services is what you'll want).

Lee Brimelow explains this (and lists AMF options for different back-ends) in a recent post entitled What the hell is AMF? And James Ward demonstrates the performance implications in his Census - RIA Data Loading Benchmarks.

Comments
Hello Ben !

I have already asked questions elsewhere about the AMF protocol advantage when it comes to
Ajax/JavaScript on the client; I remember the following answer from the top of my head:
the time it takes to transfer the data received via AMF from Flash to JavaScript -
e.g. with Adobe's "Ajax Data Services" - more than countervails the pure Flash AMF advantage
... Therefore, if the client destination is Ajax/JavaScript, one should use a data
exchange mechanism catering DIRECTLY to Ajax/JavaScript ...

I would still like to hear more opinions about this "AMF to Ajax/JavaScript" topic :-) !
After all, if Adobe's "Ajax Data Services" could not provide an AMF advantage for
Ajax/JavaScript, too, they would probably never have been offered.

Best Regards and Tschüss

Kai
# Posted By Kai Tischler | 7/30/08 11:20 AM
Hi Kai,

The benefits of AMF are faster serialization, faster deserialization, and more compact format across the wire. Depending on the size of your data sets these may or may not be a big benefit. The overhead of moving the data from Flash to JavaScript may or may not have an impact on overall performance. As always I recommend people try it out with their data sets before making a decision.

-James
# Posted By James Ward | 7/30/08 1:49 PM
AMf is great for what it does and since it is free it is used by many designers. However there are plug ins/extensions that do so much more for you than AMF does.

here is an example of one that works with Java that can be found at peakstudios.com there are some other programs that will do some of the same things that cost like 500 bucks but this one is only 20 and it runs in flash rather than as an additional program.

New release Version 2.2

Features include:
•New in 2.1 - Use Join, Union or Aliases in your table variable
•New in 2.1 - where clause operators can be used in like array =, <>, < , >, < =, >=, =, <>, >, < , <=, >=, BETWEEN, LIKE, IN. You can put TABLE (i.e =TABLE) after any of the operators to use a table field in the what array value. This upgrade adds functionality to select, update and delete classes.
•New in 2.1 - Code is generated into functions.

The Flash Java DB Flash panel extension creates:
•Copy and paste capabilities which include, select, insert, update and delete functions for AS2 & AS3
•Embedded Peak Studios AS2 & AS3 classes
•Java files for SQL database connections and queries
•A simple publish profile

New features include:
- Test your code in the Flash IDE.
- Code is interchangeable between the Java, PHP and ASP extensions by simply changing the class import from java.* to php.* or asp.*.

This is a very easy extension to use. Once you start using it, it will save you hours of time connecting your MySQL database to Flash using Java. The panel generates the actionScript code , and you simply paste the code into your actions layer. Therefore, the only thing you need to do is set the input data in simple arrays and tell the return function what to do with your results. Use it an infinite amount of times in a single file.
# Posted By peakstudios.com | 9/10/08 12:19 PM

  © Copyright 1997-2009 Ben Forta, All Rights Reserved