What is AMF mode? Today, ThinkPHP has an AMF mode. what is AMF mode? ------ Solution -------------------- what is AMF? AMF (ActionMessageFormat) is a data type of binaryformat. the flash data is encoded by AMFoverHTTP and sent back to the server. what is the AMF mode on the server?
Today, ThinkPHP has an AMF mode. what is AMF mode?
------ Solution --------------------
What is AMF?
AMF (Action Message Format) is a binary format data type. the flash data is encoded by AMF over HTTP and sent back to the server, after the remoting adaptor of the server receives the data, it decodes the correct native object and submits it to the correct program for processing.
In addition to Flash remoting, AMF is also widely used for Local Connection and Flash communication server. its biggest feature is that it can directly convert flash native objects, such as object, Array, Date, XML, return to the server and automatically translate it into appropriate objects on the server. for example, when flash Array is returned to PHP, it is automatically converted to Associative Array; the biggest benefit of this feature for developers is that they do not need to manually process the complicated work of serialization and deserialization, which not only improves accuracy, but also saves time for development.
Because AMF is binary format and is highly compressed during encoding, it is very suitable for transmitting a large amount of data. according to the flashorb website Test (mainly for web service and flash remoting ), the higher the data volume, the higher the transmission efficiency of flash remoting, which far exceeds the performance of web services. Therefore, we can also learn the xml, loadVars, loadVariables and other transmission methods using plaine text format are naturally incomparable