Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-11-2010, 08:00 AM   #1
aktell
FLEX Jokey
 
aktell's Avatar
 
Join Date: Jun 2007
Location: New Zealand
Posts: 154
Default URLRequest send to Php file ....

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

Code:
<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>
Somebody suggested this: !!! But it does not seem to work either ???
Code:
var urlLoader:URLLoader = new URLLoader(new URLRequest("http://www.sample.com/script.php"));

Last edited by aktell; 07-11-2010 at 08:45 PM.
aktell is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:54 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.