4 Replies Latest reply on Jul 11, 2010 7:23 PM by aktell2007

    URLRequest send to Php file ....

    aktell2007 Level 1

      Hi there,

       

      Exactly the same I can do easily 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 enought 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 that be possible to do 'As simple As'  with the URL.... ???

       

      Thanks in advance aktell2007

       

      <mx:Script>
           <![CDATA[
      
                import flash.net.*;
      
                private  function sendIt():void {
      
                var request:URLRequest = new URLRequest("http://www.[site name].net/log.php");
      
                request.method = URLRequestMethod.POST;
      
                     try {
                          sendToURL(request);
                     }
                          catch (e:Error) {
                               trace('there is an error')
                     }
                }          
           ]]>
      </mx:Script>