Hi, anybody knows if I can return a complex data from Java to Flash with openAmf.
I am trying to return a HasMap with another HasMap into, like this:


public Map onUserConnect (long _petitionId,String userName, String password, String roomId) {
       Map m = new HashMap();
       Boolean isValidUser = new Boolean(true);
       String photoURL = new String("foto.jpg");
       String role = new String("user");
       Integer userId = new Integer (1);
       Hashtable material = new Hashtable();
       material.put("excel.xls","0");
       material.put("word.doc","1");
       material.put("powerpoint.ppt","2");
String petitionId = String.valueOf(_petitionId);
       System.out.println("petitionID:" + petitionId);
       m.put ("isValidUser",isValidUser);
       m.put ("userId",userId);
       m.put ("material",material);
       m.put ("photoURL", photoURL);
       m.put ("role", role);
       m.put ("petitionId",petitionId);
return m;
   }

but Flash Media Server recibe undefined with the second Hashtable. Any suggestion?

Thanks in advance
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to