When you send back to the server if you
declare the parameter to the method as a HashMap you’ll get one back (it
will really be an ASObject which is a subclass of HashMap I believe).
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, November 30, 2005
7:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Mapping
Java HashMap to Flex Actionscript
You can read it like this:
for (var key in myObjmap){
var
myItem=myObjmap[key];
Do something .... myItem.property
}
One question on this topic .... how do we send
them back to Java? Let's
say you added a new key to the HashMap in Flex and
want to send it back for
processing....
|---------+----------------------------->
|
|
|
|
| "Matt
Chotin"
|
|
| <[EMAIL PROTECTED]> |
|
| Sent
by:
|
|
| flexcoders@yahoogroups.com |
|
| 11/29/2005 11:56 PM |
|
| Please respond to
|
|
|
flexcoders
|
|
|
|
|---------+----------------------------->
>-----------------------------------------------------------------------------------------------------------------------------|
|
|
| To: flexcoders@yahoogroups.com
|
|
cc:
|
|
Subject: RE: [flexcoders] Mapping Java HashMap to Flex
Actionscript
|
>-----------------------------------------------------------------------------------------------------------------------------|
When a HashMap is sent back to Flex it will simply
be an Object. You can
access a value by doing myObj[key]
Matt
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of prasanthasi
Sent: Saturday, November 26, 2005 7:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Mapping Java HashMap to Flex
Actionscript
Hi,
I am trying map Java HashMap to Flex
Actionscript. I have tried
Object mapping and Arrays with Associative
keys. Nothing worked for
some reason. Please post a sample code if
anyone knows how to do this.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design Computer
software Software design and
development
development
development
Macromedia flex Software
development
best
practice
YAHOO! GROUPS LINKS
Visit your
group "flexcoders" on the web.
To
unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of
Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------------------------------------------------
This e-mail message (including attachments, if
any) is intended for the use
of the individual or entity to which it is
addressed and may contain
information that is privileged, proprietary ,
confidential and exempt from
disclosure. If you are not the intended
recipient, you are notified that
any dissemination, distribution or copying of this
communication is
strictly prohibited. If you have received
this communication in error,
please notify the sender and erase this e-mail
message immediately.
---------------------------------------------------------------------------
--
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
|