Beruflich Dokumente
Kultur Dokumente
Action Message Format (AMF) is a binary format used jects. XML is supported as a native type. Each type is
to serialize object graphs such as ActionScript objects denoted by a single byte preceding the actual data. The
and XML, or send messages between an Adobe Flash values of that byte are as below (for AMF0):
client and a remote service, usually a Flash Media Server
or third party alternatives. The Actionscript 3 language
Number - 0x00 (Encoded as IEEE 64-bit doubleprovides classes for encoding and decoding from the
precision oating point number)
AMF format.
Boolean - 0x01 (Encoded as a single byte of value
The format is often used in conjunction with Adobes
0x00 or 0x01)
RTMP to establish connections and control commands
for the delivery of streaming media. In this case, the
String - 0x02 (16-bit integer string length with UTFAMF data is encapsulated in a chunk which has a header
8 string)
which denes things such as the message length and type
Object - 0x03 (Set of key/value pairs)
(whether it is a ping, command or media data).
Null - 0x05
Format analysis
Adobe Systems published the AMF binary data protocol specication[2] on December 13, 2007 and announced
that it will support the developer community to make this
protocol available for every major server platform.
1.1
The following amf-packet is for transmission of messages outside of dened Adobe/Macromedia containers
or transports such as Flash Video or the Real Time Messaging Protocol.
Note: the object properties can be sorted in a dierent order from the one in which they are placed in actionscript.
For coloring/markup, refer to the legend below.
The code above will work only for built-in classes like
Object. To serialise and deserialise custom classes, the
user needs to declare them using the registerClassAlias
command or else an error will be thrown by the player.
// for a hypothetical class Person registerClassAlias(personTypeAlias, Person);
Although, strictly speaking, AMF is only a data encoding
format, it is usually found encapsulated in a RTMP message or Flex RPC call. An example of the former can
be found below (it is the "_result message returned in
response to the connect command sent from the ash
client):
1.3
AMF3
ColdFusion -[3]
3 See also
Storable::AMF,
CourseVector
Library
Lua - lua-amf3
ABAP - ABAP AMF (early stage)
Delphi - kbmMW (extensive AMF0/AMF3 support)
iOS - CocoaAMF
Powershell - Powershell AMF
Frameworks:
Ruby on Rails - RubyAMF
Zend Framework - Zend_AMF
OSGi Framework - AMF3 for OSGi
Django - Django AMF
CakePHP - CakeAMFPHP
Grails (framework) - BlazeDS
Trac - TracRpcProtocolsPlugin. Version 1.1.0 (or
higher) of XmlRpcPlugin is required.
Web2py - PyAMF
BSON
Protocol Buers
4 References
[1] AMF 0 Specication
[2] AMF 3 Specication
[3] Features | Adobe ColdFusion 9 Standard
5.1
Text
Action Message Format Source: http://en.wikipedia.org/wiki/Action%20Message%20Format?oldid=654709291 Contributors: Rrjanbiah, Scragz, Hansmi, Alexf, Heirpixel, Two Bananas, Bender235, Giraedata, Toussaint, Jlward4th, FlaBot, Markhoney, JosephWatkins,
Hugo 87, Cedar101, JLaTondre, SmackBot, Nihonjoe, Andyjeries, Betacommand, Uthbrian, Miguel Andrade, Sct72, Harryboyles, Backstabb, CmdrObot, Knipping~enwiki, Alaibot, Igutekunst, Magioladitis, Alexander Abramov~enwiki, Grshiplett, Fuenfundachtzig, Areggiori, Olemis, Winterspan, WikiLaurent, RJanicek, Mild Bill Hiccup, Mydogisbox, Sun Creator, Thape, Jonverve, DumZiBoT, Jgraup,
Nathan dickamore, Addbot, Njoyce, Jncraton, MrOllie, LaaknorBot, Favonian, Ben Ben, Wonder, Lexoyo, Onthewings, Omnipaedista,
FrescoBot, LittleWink, Sam113101, Mcoderkat, MidnightCoders, , Guillaume.garcia13, Mmick66, Gilbertjgs, Roxlu, Chmarkine, Absconditus, Radistao, ForestGrass, Helmboy, Mogism, Neoxic, Arielsom, Ilankeshet, Just think72 and Anonymous: 60
5.2
Images
5.3
Content license