我知道如何使用动作脚本上传文件
请参见通过ActionScript 3.0上传使用HTTP POST一个zip文件的详细信息。
代码复制在这里:
var urlRequest:URLRequest = new URLRequest(PUBLISH_ZIP_FILE_URL);
// set to method=POST
urlRequest.method = URLRequestMethod.POST;
var params:URLVariables = new URLVariables();
params['data[File][title]'] = 'Title1';
params['data[File][description]'] = 'desc';
// this is where we include those non file params and data
urlRequest.data = params;
// now we upload the file
// this is how we set the form field expected for the file upload
file.upload(urlRequest, "data[File][filename]");
Web应用程序负责受理文件上传将返回包含详细信息,如文件大小,身份证号码等JSON字符串
如何访问我的这个动作JSON结果字符串?