3 Replies Latest reply on Jul 7, 2014 6:20 AM by kglad

    AS2 SendAndLoad Problem


      Hello, I have a question about the ActionScript 2.0 SendAndLoad


      This is my AS2 code:


      var send_lv: LoadVars = new LoadVars ();

      var load_lv: LoadVars = new LoadVars ();

      send_lv.mydata = '{"name": "guest"}'; // ( JSON data)

      send_lv.sendAndLoad ("anyURL", load_lv);


      However, when I send, "mydata" would be encoded as: "mydata =%7B%22name%22%3A%22guest%22%7D"

      How can I keep "mydata" remain {"name": "guest"}?


      Note: This problem doesn't happen in ActionScript 3.0


      Thank you very much