The table below shows the type conversions from the received ActionScript type to .NET type
| ActionScript Type AS2/AMF0 | ActionScript Type AS3/AMF3 | .NET Type |
|---|---|---|
undefined/null |
undefined/null |
null |
Number |
Number |
Byte, SByte, UInt16, Int16, UInt32, Int32, UInt64, Int64, Decimal, Single, Double |
--- |
int |
Byte, SByte, UInt16, Int16, UInt32, Int32, UInt64, Int64, Decimal, Single, Double |
Boolean |
Boolean |
System.Boolean |
System.DateTime |
||
String |
String |
String |
XML |
XML |
System.Xml.XmlDocument |
Array |
Array |
Array |
Associative Array |
Associative Array |
System.Collections.Hashtable |
--- |
mx.collections.ArrayCollection |
FluorineFx.AMF3.ArrayCollection |
--- |
flash.utils.ByteArray |
byte[] |
Object |
Object |
FluorineFx.ASObject (Hashtable) |
Note: additionally if a TypeConverter is available it can further adapt the received value
The table below shows the type conversions for .NET types to ActionScript types
| .NET Type | ActionScript Type AS2/AMF0 | ActionScript Type AS3/AMF3 |
|---|---|---|
null |
null |
null |
Byte/SByte |
Number |
int |
UInt64/Int64 |
Number |
Number |
System.Enum |
Number |
Number |
System.Boolean |
Boolean |
Boolean |
System.DateTime |
||
System.String |
String |
String |
System.Guid |
String |
String |
System.Xml.XmlDocument |
XML |
XML |
System.Array |
Array |
Array |
System.Collections.IList |
Array |
Array (when "useLegacyCollection" is set) |
System.Collections.Hashtable |
Object (untyped) |
Object (untyped) |
System.Data.DataTable |
RecordSet |
DataTable Object(ASObject) |
Sytem.Data.DataSet |
Associative array of RecordSet objects |
Associative array of DataTable objects(ASObject) |
FluorineFx.ASObject |
Object |
Object |
FluorineFx.AMF3.IExternalizable |
--- |
|
FluorineFx.ASObject with Type property set |
||
FluorineFx.AMF3.ByteArray |
--- |
flash.utils.ByteArray |