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 want to keep using http and just change the data format to AMF3.
ByteArray supports readObject() and writeObject() which lets you read and write objects from and to AMF.
ByteArray has the capabilities to read and write data in AMF via the readObject() and writeObject() calls. To convert an ActionScript object into the AMF format, simply create a new ByteArray and call writeObject(yourobject). This data can be sent back to the server via a URLLoader, or it can be persisted to file system if you are developing an AIR application. Make sure the data format is set to binary as AMF is a binary format.
If you want to use HTTPService in flex and you are expecting back an AMF response, you can use the HTTPAMFService component written exactly for this purpose.
To preserve the type of an object, make sure that either a RemoteClass metadata tag exists for the class or registerClassAlias() has been called on it prior to the writeObject() or readObject() call.