Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / October 2004



Tip: Looking for answers? Try searching our database.

Hashtable in Actionscript?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rafism - 27 Oct 2004 19:32 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.