1 (edited by murshadhaque 2011-11-08 06:51:52)

Topic: how to post a json data to webserver in actionscript1

hi guys,
i am new in actionscript1 and i am trying to post json data data to webserver but i couldn't , is there any one knows about this problem, thanksssssssssss

class SendJsonData
  public function SendJsonData()
    var jsonData:String = "{\"id\": \"120\", \"name\":\"murshad\",\"roll\":\"1\",\"subject\":\"math\"}";
    var sender:LoadVars = new LoadVars();
    sender.data = jsonData;
    sender.addRequestHeader("Content-Type", "application/json");