Data Type Map

The following is a guide to the ActionScript to Python type mappings:

Basic Types

ActionScript Type Python Type
null None
undefined, void pyamf.Undefined
String str
Boolean bool
Number float
Date datetime.datetime
XML ElementTree.Element
Array list, tuple
Object dict
RecordSet pyamf.amf0.RecordSet
Typed Object (other than the above) class instance (registered via pyamf.register_class)

AMF3

ActionScript Type Python Type
int, uint int
ByteArray pyamf.amf3.ByteArray
DataInput pyamf.amf3.DataInput
DataOutput pyamf.amf3.DataOutput

Flex (AMF3)

ActionScript Type Python Type
ObjectProxy pyamf.flex.ObjectProxy
ArrayCollection pyamf.flex.ArrayCollection
AbstractMessage pyamf.flex.messaging.AbstractMessage
AsyncMessage? pyamf.flex.messaging.AsyncMessage
AcknowledgeMessage? pyamf.flex.messaging.AcknowledgeMessage
CommandMessage? pyamf.flex.messaging.CommandMessage
ErrorMessage? pyamf.flex.messaging.ErrorMessage
RemotingMessage? pyamf.flex.messaging.RemotingMessage
DataMessage? pyamf.flex.data.DataMessage
SequencedMessage? pyamf.flex.data.SequencedMessage
PagedMessage? pyamf.flex.data.PagedMessage
DataErrorMessage? pyamf.flex.data.DataErrorMessage