Problem with Loadvars

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!!

Does this “production server” have ColdFusion?

Yes both servers have Coldfusion.

The security feature of the flash player may be affecting the code.
If the server which you are trying to access is on a domain other than the one where your swf resides, the flash player won’t allow you to do so.
See security related help in flash documentation.
Above problem can be solved using crossdomain.xml file which lists the authentic hosts from where the swfs will be accessing the server.