View Full Version : URLRequest send to Php file ....

07-11-2010, 08:00 AM
Hi there,

Exactly the same I can do easily with Http, but I can't use Http because where I like to use it; it does not except or work with the Http.

So what I need to find is to address a Php file other than using Http, and funny enough I can use with it the URLRequest and URLLoader which works fine, but in this case I 'ONLY' need to address (activate) a Php log file to run.

Anybody knows if that would be possible to do 'As simple As' with the URL.... ???

Thanks in advance aktell


import flash.net.*;

private function sendIt():void {

var request:URLRequest = new URLRequest(http://www.[site name].net/log.php);

request.method = URLRequestMethod.POST;

try {
catch (e:Error) {
trace('there is an error')

Somebody suggested this: !!! But it does not seem to work either ???

var urlLoader:URLLoader = new URLLoader(new URLRequest("http://www.sample.com/script.php"));