0 Replies Latest reply on Nov 1, 2008 9:19 AM by johnnyleitrim

    Easiest setup for local testing of HTTPService

      I have written a simple webapp and am running it on http://localhost:8080/myApp and I'm using an HTTPService to retrieve information:

      var httpService:HTTPService = new HTTPService();
      httpService.addEventListener(ResultEvent.RESULT, httpResult);
      httpService.addEventListener(FaultEvent.FAULT, httpFault);
      httpService.url = " http://localhost:8080/myApp";
      httpService.resultFormat = "xml";

      I compile the swf, and then open the swf file in my browser with the url:


      I get a "Security error accessing url", since I am going "across domains". I tried using file://localhost/home... but that did not help.

      I'm wondering what is the easiest way to get this working? Since this is primarily just for testing the SWF during development, I didn't want to have to create a crossdomain.xml or have to copy the swf file to the test webservers root, or setup a proxy.

      I'm hoping there might be some "disable security" feature I could set in my flash player or during compilation of the swf file that would allow this to work without extra overhead.


      PS. I see there is a message that says: "Please use "Attach Code" to include any sample code in the message". I'm uding FF3, and I couldn't find ant "Attach Code" option