Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Easiest setup for local testing of HTTPService


Level 1
I have written a simple webapp and am running it on
and I'm using an HTTPService to retrieve information:

var httpService:HTTPService = new HTTPService();


httpService.addEventListener(FaultEvent.FAULT, httpFault);

httpService.url = "

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

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
0 Replies