KEWL! AMF through ExternalInterface!
Yep, not too sure if it helps anyone but I managed to pass around an omf object through the external interface.
Following on from Onflex.orgs post I encoded an AMF Array of objects then passed it through the external interface using the readUTF method. Now im not sure if the data is any smaller than an xml representation of the same object, but hey it can be done.
I created an Array of objects, read them into a ByteArray, then readutf off into the externalinterface. Picked the data up in .NEt (Came through as a hex string) and passed it back to flash. Flash then successfully decoded it out to a flash Array of objects.
Now all I need is a .Net AMF serialiser. MidnightCoders (WebObjects) Im looking your way
). Then I can pass objects round all day long. Maybe even use Zlib compression on it. Who knows. Thought it might be cool for a flex project I have started at work where we are creating a flex UI for a .Net application.
Doubt it will help anyone but nice to know it can be done.

Cool
If you haven’t checked out the Fluorine project yet you should do so. It is an open source .net AMF0 and AMF3 remoting library. It is made to work with a web server but I am sure with a little tweaking you could run it in any .net app.
Muh haaaww Good idea, cheers! next stop tweaksville!
hi, campbell.
i come across the same problem with you. what i want is to transfer a image from C# to Flash Actionsript as binary via ExternalInterface .
Do you have any idea about .NET AMF serialiser?
Xavier, yes WebOrd has methods in thier .NET version which allows you to decode and encode AMF objects without all the header information. Look into the methods availble ;o)