Home | Trees | Indices | Help |
|
---|
|
The AMF/RTMP data encoding format constants.
See Also: Data types on OSFlash (external)
|
|||
NUMBER = 0 Represented as 9 bytes: 1 byte for 0×00 and 8 bytes a
double representing the value of the number.
|
|||
BOOL = 1 Represented as 2 bytes: 1 byte for 0×01 and a second,
0×00 for False , 0×01 for
True .
|
|||
STRING = 2 Represented as 3 bytes + len(String): 1 byte 0×02 , then
a UTF8 string, including the top two bytes representing string length
as a int .
|
|||
OBJECT = 3 Represented as 1 byte, 0×03 , then pairs of UTF8 string,
the key, and an AMF element, ended by three bytes, 0×00
0×00 0×09 .
|
|||
MOVIECLIP = 4 MovieClip does not seem to be supported by Remoting. |
|||
NULL = 5 1 single byte, 0×05 indicates null.
|
|||
UNDEFINED = 6 1 single byte, 0×06 indicates null.
|
|||
REFERENCE = 7 When an ActionScript object refers to itself, such this.self =
this , or when objects are repeated within the same scope (for
example, as the two parameters of the same function called), a code
of 0×07 and an int , the reference number,
are written.
|
|||
MIXEDARRAY = 8 A MixedArray is indicated by code 0×08 , then a Long
representing the highest numeric index in the array, or 0 if there
are none or they are all negative.
|
|||
OBJECTTERM = 9
|
|||
ARRAY = 10 An array is indicated by 0x0A , then a Long for array
length, then the array elements themselves.
|
|||
DATE = 11 Date is represented as 00x0B , then a double, then an
int .
|
|||
LONGSTRING = 12 LongString is reserved for strings larger then 2^16 characters long. |
|||
UNSUPPORTED = 13 Trying to send values which don’t make sense, such as prototypes, functions, built-in objects, etc. |
|||
RECORDSET = 14 Remoting Server -> Client only. |
|||
XML = 15 The XML element is indicated by 00x0F and followed by a
LongUTF containing the string representation of the XML object.
|
|||
TYPEDOBJECT = 16 A typed object is indicated by 0×10 , then a UTF string
indicating class name, and then the same structure as a normal
0×03 Object.
|
|||
AMF3 = 17 An AMF message sent from an AVM+ client such as the Flash Player 9 may break out into AMF3 mode. |
|
MOVIECLIPMovieClip does not seem to be supported by Remoting. It may be used by other AMF clients such as SharedObjects.
|
MIXEDARRAYA MixedArray is indicated by code
|
OBJECTTERMSee Also: OBJECT
|
ARRAYAn array is indicated by
|
DATEDate is represented as
|
LONGSTRINGLongString is reserved for strings larger then 2^16 characters long. It is represented as
|
UNSUPPORTEDTrying to send values which don’t make sense, such as prototypes,
functions, built-in objects, etc. will be indicated by a single
|
RECORDSETRemoting Server -> Client only.
|
XMLThe XML element is indicated by
|
TYPEDOBJECTA typed object is indicated by
|
AMF3An AMF message sent from an AVM+ client such as the Flash Player 9 may break out into AMF3 mode. In this case the next byte will be the AMF3 type code and the data will be in AMF3 format until the decoded object reaches it’s logical conclusion (for example, an object has no more keys).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jan 18 18:12:12 2009 | http://epydoc.sourceforge.net |