Read Digital Edition


ADS BY GOOGLE
Top Three Links You Must Click On


AMF 3 Specification Is Published
Data serialization between Flash Player and the rest of the world made public

Action Message Format (AMF) is a protocol that is used to serialize the data coming into Flash Player or going out to other programming environments that need to communicate with Flash Player. Say, if you create in Java an instance of the class MyOrder.java, this instance can be converted into a string of bytes, sent over the wire to Flash Player and then recreated there as an instance of the ActionScript object MyOrder.as.  The rules of how to do this are defined by a communication protocol, such as  AMF.  Prior to Flash Player 9, the protocol AMF0 has been used, but now Adobe offer implementation of  more efficient AMF3.

The good news is that Adobe decided to make the AMF3 protocol  available to the public, and you can find its description in this document
This is great news for Flash community as it’ll allow more and more third parties to implement this protocol and offer a lot faster communication between the Flash Player and programming environments written in other languages. While Adobe today offers its own implementation of this protocol  for Java and Coldfusion, now it’ll start competing  with other firms that may offer more efficient implementation of this protocol or better tool for developers. The Midnight Coders is one of the vendors that are offering their version of AMF for Java, .Net and other platforms.

While the AMF uses HTTP as a transport, the speed of data exchange between Flash Player and, say,  J2EE application over AMF would be at least ten time faster than comparing to a regular HTTP protocol.
AMF protocol  is based on data polling, but Adobe offers yet another Real Time Messaging Protocol (RTMP) that is being used in such applications as video streaming or others  where the real-time push from the server is needed, for example financial trading applications. The specification of RTMP protocols has not been published yet at this point.

About Yakov Fain
Yakov Fain is a Managing Director of Farata Systems, consulting, training and product company. He has authored several Java books, dozens of technical articles. SYS-CON Books released his latest co-authored book , Rich Internet Applications with Adobe Flex and Java: Secrets of the Masters in Spring 2007. Sun Microsystems has nominated and awarded Yakov with the title Java Champion. He leads the Princeton Java Users Group. He is an Adobe Certified Flex Instructor. Currently Yakov works on the book for O'Reilly "Enterprise Application Development with Flex". He twits at twitter.com/yfain.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

I have studied the specification and have a couple of comments.

The compressed way of representing integers with 1 to 4 bytes are very smart, but why did they stop with 4 bytes. If they allowed up to 5 bytes, a complete 32 bit integer could be represented this way.

It isn't clear - at least to me - how negative integers should be represented.

Examples, examples, examples - why aren't their any?


  Subscribe to our RSS feeds now and receive the next article instantly!
In It? Reprint It! Contact advertising(at)sys-con.com to order your reprints!
Subscribe to the World's Most Powerful Newsletters

ADS BY GOOGLE
But on the web, access to services is implicit in the fact that the business is offering the service...
Gartner thinks the server business has stopped sliding into the abyss. Third-quarter sales weren’t a...
Gartner told Reuters that it overestimated how many PCs Acer shipped in the last seven quarters by a...
Behaving like it’s got a future, Sun Monday put out what it calls a significant new version of Virtu...
Office Web Apps, Microsoft’s answer to Google Apps, are supposed to be out sometime in June along wi...
Berlin-based ThinPrint AG, the printer virtualization house, thinks it’s got a cloud solution for th...
Gartner is buying ~$40 million-a-year AMR Research Inc for close to $64 million in cash. AMD special...
Intel has put out its promised beta SDK for Windows (C and C++) and Moblin (C) developers working on...
The second set of charges filed last week against Indian outsourcer Satyam Computer Services founder...
InformationWeek stumbled on a Microsoft patent application dating back to 2006 deceptively titled “M...
Singed by user reaction to its plans to up the price of its support contracts, SAP Tuesday postponed...
Apparently Google Gears ain’t gonna stick around that long. Google Apps will eventually get their of...
IBM has acquired Guardium, a seven-year-old subsidiary of Israel’s Log-On Software transplanted to M...
Oracle has offered to cordon off MySQL inside a combined Oracle-Sun to get the European Commission t...
Oracle seems to have divided the open source ranks over the MySQL delay it’s having closing its acqu...
The Korean government is going to sink around $172 million into cloud computing next year under a st...
We hear – well, you know how people talk – that Oracle has been quietly meeting with the European Co...
In response to Opera’s complaints Microsoft has reportedly modified the proposed ballot screen that’...
CA is looking for talent in EMEA: associate account managers, directors of solution sales, senior so...
Microsoft has sold the Folio and NXT businesses it got when it bought Fast Search and Transfer, the ...