以下是我正在使用的内容:
var stats:Array = ["11", "22", "33"];
create();
function create():void
{
var sender:URLLoader = new URLLoader;
var myVar:URLVariables = new URLVariables;
myVar.stats = stats;
var website:URLRequest = new URLRequest("http://www.roomrecess.com/MQFiles/createChar.php");
website.data = myVar;
sender.load(website);
sender.addEventListener(Event.COMPLETE, sendComplete);
}
您也可以发送电子邮件至:brian.king@southmont.12.in.us
感谢!!!!
答案 0 :(得分:0)
应该是非常自我解释的。
var vars = new URLVariables();
vars.postFieldName1="dummy1";
vars.postFieldNameA="dummy2";
var req:URLRequest = new URLRequest("entry.php");
req.method = URLRequestMethod.POST;
req.data = vars;
var sender=new URLLoader();
sender.addEventListener(Event.COMPLETE, dataSent);
sender.dataFormat = URLLoaderDataFormat.BINARY;
sender.load(req);