0
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("http://domain.net/registerVideo.php");
var vars:URLVariables = new URLVariables();    
vars.action = "insert";
vars.record = publishMode;
vars.name = streamName;
request.data = vars;
request.method = URLRequestMethod.POST;
loader.load(request);

The above client side code works for my machine(using the same web session),

but not working for some other machines.

Is this a known bug??

compile-fan
  • 16,885
  • 22
  • 59
  • 73

1 Answers1

0

My guess is that you are testing this from the domain.net machine but loading from somewhere else. If it is not working from another machine, you may have a security sandbox violation. Try to add a crossdomain.xml file on your server with something like this to see if that fixes your issue.

<?xml version="1.0" ?>
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

I wouldn't advise keeping this for production if it fixes your issue. For more info, see this link.

Scott
  • 16,711
  • 14
  • 75
  • 120
  • thanks for the reply!But I already have added `crossdomain.xml` – compile-fan Apr 04 '11 at 05:31
  • And if it's security sandbox violation,there will be a dialog popping out,but there's no such dialog. – compile-fan Apr 04 '11 at 05:36
  • Shoot, that was my first guess given the symptoms. That makes this a lot trickier then. Actually I did see something somewhat similar to this when I was trying to upload files. When I coded a straight servlet, it worked fine. But when I used Spring, it did not work (though it did work from a basic upload web page). Since you're on php, not sure that would be much help though. – Scott Apr 04 '11 at 19:18