1 Reply Latest reply on Jul 25, 2009 6:29 AM by ShardulSingh

    How to read a HashMap in Flex?

    Ravi Kotha

      I have a flex app which interacts with java code. The java code returns a HashMap<Integer, ArrayList>. I was unable to get the 'Arraylist' associated with each 'key' in the HashMap. My code looks like this..


                          for ( var key:Object in e.result )
                              var listObj:Object = e.result[key];
                                 logger.error("key is " + key + " val is " + listObj);


      Not sure what went wrong here... I checked the back end java logs. The back end java code returns proper HashMap of Integer and ArrayList.


      Any idea??