Hi All,
I am using Flash Remoting with Java, with my application server running on
Tomcat. My Java application returns a Hashtable for a certain method, which
internally is a Hashtable of Hashtables (containing many key-value pairs of
values). I need to acess this from Actionscript in Flash, so that I can use
these values. However, I found that actionscript does not support hashtables.
So, can anyone provide me pointers on how can this be handled ?
Thanks,
Mohamed Rafi S
silkpuppet - 29 Oct 2004 16:52 GMT
If you return a HashTable (or any java.util.Map implementation) from the
server, Flash Remoting will convert it into an associative array for Flash. So
basically in Flash, you get an object back with properties and values that
match the hash keys and values. Nested HashTables seem to work fine as well.
When you send an associative array from Flash to the server, Flash Remoting
converts it into FlashGateway.IO.ASObject which implements the java.util.Map
interface.
~j.
~j.