Hi,
I’m trying to use the following piece of code to load variables from an external URL into my flash. It works on one server (development server) but not on my production server. I was just wondering if there’s anything to do with server setup that would cause it to fail?
this.params_lv = new LoadVars();
var owner:form1 = this;
this.params_lv.onLoad = function (success:Boolean) { owner.onLoadVarsDone(success); }
this.loadLink = "http://www.myserver.com/client/1853/html/index.cfm?fuseaction=ppty.getMap";
this.ID = 0;
this.params_lv.load(this.loadLink+"&ID="+this.ID);
function onLoadVarsDone(success:Boolean):Void {
if(success){
this.loadMap(this.params_lv.mapFile)
}
else{
this.alert('Error: Cannot connect to server');
}
}
This exact code works on one server and doesn’t on another. On the one that it doesn’t work on it always hits the alert(‘Error: Cannot connect to server’); … and I have no idea why!!