Note that while you can register classes using ActionScript on the client for serialization... there's no way to "register" a Java class on the server. Your server type must not implement Map or Collection as these types already have firm rules for server to client serialization.
This may be something to log for consideration for Flex 2.0. Alternatively, any chance are you returning empty Maps in any of the properties? I ask because the following special case may occur: Empty Java Map -> Empty AS Associative Array -> Empty Java List This is because there's no distinction between an empty dense, ordinal, i.e. normal AS Array and an empty AS Associative Array (i.e. they're the thing, just an empty Array) and thus Array -> List. I'd contact Flex Support if you need a solution to the latter for Flex 1.5. We've worked with customers on this problem. (NB: After several customer requests, Flex 1.5 reverted back to match the legacy behavior from Flash Remoting's convention of returning a Java Map as an associative Array instead of an Object... which historically stems from ColdFusionStructs being return as AS Associative Arrays (...and note Flex 1.0 had Maps returned as Objects). In Flex 2.0 we've again moved to have Java Maps returned as AS Objects by default (with a configuration option for people who wish to go back to the old Arrays... but note this something that we would discourage in Flex 2.0 due to the issue described above). -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jgraham_us Sent: Thursday, December 15, 2005 12:23 PM To: [email protected] Subject: [flexcoders] passing Map from Flex to server side Using remote objects stuff, I am able to pass my object which contains a Map object from server to flex, but when I try to send that object back it doesn't work. Set objects work, but Map objects don't. On the AS side my Map is defined as an Array in the AS object. On the server side it is a Map object. I have a registerClass call to map the AS object to the java object. Can anyone help me out or point me to any examples of how to do this? Thanks ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

