Sending hashtables

edited March 2011 in Flash (deprecated)
OK so when the server sends messages to Flash it translates it into an Array with x2 keys and in no particular order, with the 1st key being the key, 2nd value, 1st key, 2nd value, etc..

However, sending such an array to Photon (And expecting it to work) doesn't work.
Photon says "Expected a Hashtable but received Object[]"..

Long question short, how can I send Hashtables from Flash to Photon?


  • Please try dynamic objects:

    var o : Object = new Object();
    o["myint"] = 10;
    o[12] = "hello";

    AMF3 will then mark this as Object and Photon deserializes it as Hashtable.