It probably was returned as an Object.  We don’t have a specific HashMap class, instead Object is what you’ll get and it won’t indicate how many properties there are.  You can however still iterate through them:

 

var numProps:int = 0;

for (var key:String in obj)

{

  var value = obj[key];

  numProps++;

}

 


From: [email protected] [mailto:[email protected]] On Behalf Of jgraham_us
Sent: Thursday, December 08, 2005 10:13 PM
To: [email protected]
Subject: [flexcoders] passing Map in remote object

 

I have a server side POJO that has a HashMap, my actionscript call
makes a call to the server using remote objects.  When I get the
object on the flex side the Map is represented as Object or an Array I
guess.  The length is always zero, yet my items are in the object.

Why is the length always zero?  I need to iterate through these.

Thanks









--
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 development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to