Hi,

Well I'm have some troubles using a HashMap on the server-side.

I use a java remote custom object, which contains a hashmap as one of
its attributes. The custom object should be converted to the
ActionScript object MyValue when it's getting transfered to the client.

But on the client-side I always geht a error.

***TypeError: Error #1034: Typumwandlung fehlgeschlagen:
[EMAIL PROTECTED] kann nicht in Array umgewandelt werden.***

Which is the correct ActionScript type for the HashMap?

#### Java Class ####
package test;
import java.util.HashMap;

public class MyValue {
        public String s;
        public HashMap<String,Object> params;
}
####################


#### ActionScript Class ####
        [RemoteClass(alias="test.MyValue")]     
        public class MyValue
        {
                public function MyValue() { trace("MyValue Constructor"); }
                
                public var s : String;
                public var params : Array;
                
                public function toString() : String 
                {
                        return s + " - " + params;
                }
        }
############################

thx & regards

Cyrill



Reply via email to