var variables:URLVariables = new URLVariables(); variables.param1 = param1; variables.param1 = param1;
var request:URLRequest = new URLRequest(); request.url = "testpage.php"; request.method = URLRequestMethod.POST; //can be GET request.data = variables;
var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.TEXT; // can be XML loader.addEventListener(Event.COMPLETE, completeHandler); loader.load(request);
function completeHandler(event:Event):void { trace(event.target.data); // show data respone } |
2 comments:
Nice blog, hehe
thks ku
Post a Comment