as3 コード:
public function exists(uid:String):void {
request = new URLRequest("http://localhost/index.php");
request.method = URLRequestMethod.POST;
variables = new URLVariables();
variables.uid = uid;
request.data = variables;
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, urlLoader_existsHandler);
loader.load(request);
}
protected function urlLoader_existsHandler(event:Event):void {
trace(event);
//var variables:URLVariables = URLLoader(event.target).data;
//trace(variables);
//trace(variables.success);
}
PHP出力は
成功=1®istration_id=1
エラーは次のとおりです。