Fluorine .NET Flash Remoting Gateway

Type conversion (AS3/AMF3)

The table below shows the type conversions from the received ActionScript type to .NET type

ActionScript Type .NET Type

undefined/null

null

Number

Any numeric type, as appropriate

int

Any numeric type, as appropriate

Boolean

System.Boolean

Date

System.DateTime

String

System.String

XML

System.Xml.XmlDocument

Array

object array
IList
System.Collections.ArrayList
com.TheSilentGroup.Fluorine.AMF3.ArrayCollection

Associative Array

System.Collections.Hashtable

Object

com.TheSilentGroup.Fluorine.ASObject (Hashtable)
.NET typed object with a constructor that takes no parameters

mx.collections.ArrayCollection

com.TheSilentGroup.Fluorine.AMF3.ArrayCollection

flash.utils.ByteArray

byte[]
com.TheSilentGroup.Fluorine.AMF3.ByteArray

Note: additionally if a TypeConverter is available it can further adapt the received value

 

The table below shows the type conversions .NET application data types to ActionScript

.NET Type ActionScript Type

null
DBNull
System.Data.SqlTypes.INullable(when IsNull = true)

null

byte/sbyte
short/ushort
int/uint

int

long/ulong
decimal
float
double

Number

System.Enum

int

System.Boolean

Boolean

System.DateTime

Date

System.String
System.Char

String

System.Guid

String

System.Xml.XmlDocument

XML

System.Array

Array

System.Collections.IList

Array (with "useLegacyCollection" set)
mx.collections.ArrayCollection

System.Collections.Hashtable
System.Collections.IDictionary

Associative Array

System.Data.DataTable

DataTable Object(ASObject)

Sytem.Data.DataSet

Associative array of DataTable objects(ASObject)

com.TheSilentGroup.Fluorine.ASObject
System.Exception

Object

com.TheSilentGroup.Fluorine.AMF3.IExternalizable

A typed object implementing flash.utils.IExternalizable

com.TheSilentGroup.Fluorine.ASObject with Type property set
any other type

Typed Object/Object

byte[]
com.TheSilentGroup.Fluorine.AMF3.ByteArray

flash.utils.ByteArray