Skip navigation
keithlye
Currently Being Moderated

question on URLRequest(path?)

Jun 29, 2011 10:21 PM

im new here, i wanna which patn is valid for URLRequest

 

 

var varSend:URLRequest = new URLRequest("config_flash.php");

//only valid if i put my .fla file in a same folder?

 

var varSend:URLRequest = new URLRequest("C:\config_flash.php");

//can it execute prefectly from C drive?

 

var varSend:URLRequest = new URLRequest("http://localhost/project/config_flash.php");

//or only execute in apeche server's folder?

 
Replies
  • Currently Being Moderated
    Jun 29, 2011 11:29 PM   in reply to keithlye

    var varSend:URLRequest = new URLRequest("config_flash.php");

    //only valid if i put my .fla file in a same folder?

     

    Using the relative path is fine, but this should be target from the swf file where it resides, if you embeded in the html then it should target from the html path.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 30, 2011 8:32 AM   in reply to keithlye

    Hi,

     

    varSend:URLRequest = new URLRequest("http://localhost/project/config_flash.php");

    Use this path.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points