sandbox violation

flex and flash community for experts


Note: This is an HTML version of the Flex site - sandboxviolation. To experience this site in its full glory, visit the Flex version showing the same data. This page will automatically redirect to the Flex version in two seconds.

You can stop the auto redirection:


AMF instead of XML over http?

Is it possible to simply transfer data over http that has been encoded in AMF format, ie to bypass all the other remoting stuff and just use AMF as one might use XML? I've been looking at the docs and online and all the docs seem to assume you want the whole remoting thing with a gateway etc. I want to keep using http and just change the data format to AMF3. Is this possible? If so, is there a right way to do it, and can anyone point me in the right direction? (Originally asked by Guy Morton on flexcoders)

By anirudhsasikumar

Tagged: http


Answers

ByteArray supports readObject() and writeObject() which lets you read and write objects from and to AMF. I have a Flex component that internally does this (but it only expects the result from the HTTP call to be in AMF, you'd need to manually use ByteArray.writeObject() to encode): HTTPAMFService It is part of fxstruts where I am treating AMF only as a data format.

By anirudhsasikumar