<s>
Action	B-Protocol
Message	I-Protocol
Format	I-Protocol
(	O
AMF	O
)	O
is	O
a	O
binary	O
format	O
used	O
to	O
serialize	B-Application
object	O
graphs	O
such	O
as	O
ActionScript	B-Operating_System
objects	O
and	O
XML	O
,	O
or	O
send	O
messages	O
between	O
an	O
Adobe	B-Operating_System
Flash	I-Operating_System
client	O
and	O
a	O
remote	O
service	O
,	O
usually	O
a	O
Flash	B-Operating_System
Media	I-Operating_System
Server	I-Operating_System
or	O
third	O
party	O
alternatives	O
.	O
</s>
<s>
The	O
Actionscript	B-Operating_System
3	O
language	O
provides	O
classes	O
for	O
encoding	O
and	O
decoding	O
from	O
the	O
AMF	O
format	O
.	O
</s>
<s>
The	O
format	O
is	O
often	O
used	O
in	O
conjunction	O
with	O
Adobe	O
's	O
RTMP	B-Operating_System
to	O
establish	O
connections	O
and	O
control	O
commands	O
for	O
the	O
delivery	O
of	O
streaming	O
media	O
.	O
</s>
<s>
AMF	O
was	O
introduced	O
with	O
Flash	B-Operating_System
Player	I-Operating_System
6	O
,	O
and	O
this	O
version	O
is	O
referred	O
to	O
as	O
AMF0	O
.	O
</s>
<s>
It	O
was	O
unchanged	O
until	O
the	O
release	O
of	O
Flash	B-Operating_System
Player	I-Operating_System
9	I-Operating_System
and	O
ActionScript	B-Operating_System
3.0	O
,	O
when	O
new	O
data	O
types	O
and	O
language	O
features	O
prompted	O
an	O
update	O
,	O
called	O
AMF3	O
.	O
</s>
<s>
Flash	B-Operating_System
Player	I-Operating_System
10	O
added	O
vector	O
and	O
dictionary	O
data	O
types	O
documented	O
in	O
a	O
revised	O
specification	O
of	O
January	O
2013	O
.	O
</s>
<s>
The	O
following	O
amf-packet	O
is	O
for	O
transmission	O
of	O
messages	O
outside	O
of	O
defined	O
Adobe/Macromedia	O
containers	O
or	O
transports	O
such	O
as	O
Flash	B-Operating_System
Video	I-Operating_System
or	O
the	O
Real	B-Operating_System
Time	I-Operating_System
Messaging	I-Operating_System
Protocol	I-Operating_System
.	O
</s>
<s>
As	O
an	O
example	O
,	O
when	O
encoding	O
the	O
object	O
below	O
in	O
actionscript	B-Operating_System
3	O
code	O
.	O
</s>
<s>
Note	O
:	O
the	O
object	O
properties	O
can	O
be	O
sorted	O
in	O
a	O
different	O
order	O
from	O
the	O
one	O
in	O
which	O
they	O
are	O
placed	O
in	O
actionscript	B-Operating_System
.	O
</s>
<s>
Although	O
,	O
strictly	O
speaking	O
,	O
AMF	O
is	O
only	O
a	O
data	O
encoding	O
format	O
,	O
it	O
is	O
usually	O
found	O
encapsulated	O
in	O
a	O
RTMP	B-Operating_System
message	O
or	O
Flex	O
RPC	O
call	O
.	O
</s>
<s>
The	O
AMF	O
message	O
starts	O
with	O
a	O
0x03	O
which	O
denotes	O
an	O
RTMP	B-Operating_System
packet	O
with	O
Header	O
Type	O
of	O
0	O
,	O
so	O
12	O
bytes	O
are	O
expected	O
to	O
follow	O
.	O
</s>
<s>
It	O
is	O
of	O
Message	O
Type	O
0x14	O
,	O
which	O
denotes	O
a	O
command	O
in	O
the	O
form	O
of	O
a	O
string	O
of	O
value	O
"	O
_result	O
"	O
and	O
two	O
serialized	B-Application
objects	I-Application
as	O
arguments	O
.	O
</s>
<s>
Additional	O
markers	O
used	O
by	O
Flash	B-Operating_System
Player	I-Operating_System
10	O
(	O
the	O
format	O
is	O
still	O
referred	O
to	O
as	O
AMF3	O
)	O
are	O
as	O
follows	O
:	O
</s>
<s>
In	O
older	O
versions	O
of	O
Flash	B-Operating_System
Player	I-Operating_System
there	O
existed	O
one	O
number	O
type	O
called	O
'	O
Number	O
 '	O
which	O
was	O
a	O
64-bit	O
double	O
precision	O
encoding	O
.	O
</s>
<s>
Java	B-Language
-	O
,	O
,	O
,	O
,	O
,	O
,	O
,	O
,	O
</s>
<s>
PHP	B-Application
-	O
AmfPHP	B-Language
,	O
,	O
,	O
,	O
,	O
</s>
<s>
Perl	B-Language
-	O
,	O
,	O
</s>
<s>
Ruby	B-Language
-	O
,	O
,	O
</s>
<s>
ActionScript	B-Operating_System
-	O
(	O
in-built	O
)	O
,	O
</s>
<s>
Trac	B-Language
-	O
.	O
</s>
