I am having a confusing time with a simple GET request. When I make my own url string it works fine, but if I use the URLVariables format I get a 2048 sandbox security error. I can see in the second case that there is a spurious '/crossdomain.xml' string added to the GET - which is clearly the issue.
My question is, why is the spurious '/crossdomain.xml' added in the second case and not the first? I have all the code below the second case commented.
All the correct crossdomain.xml files are in place so that is not the issue here.
public function ReadXML(server:String,account:String,file:String,type:String,service:String,protocol:Stri ng,port:String,output:String,playlist:String,callback:Function ):void
_callback = callback;
// this works
var url:String = server+'/?account='+account+'&file='+file+'&type='+type+'&service='+service+'&protocol='+ protocol+'&port='+port+'&output='+output+'&playlist='+playlist;
var request:URLRequest = new URLRequest(url);
// this fails with 2048
/*var variables:URLVariables = new URLVariables();
variables.account = account;
variables.file = file;
variables.type = type;
variables.service = service;
variables.protocol = protocol;
variables.port = port;
variables.output = output;
variables.playlist = playlist;
request.data = variables;*/
What is the full text of the error?