all groups > macromedia flash flash remoting > september 2005 >
You're in the

macromedia flash flash remoting

group:

remoting working locally but not when live


remoting working locally but not when live daveluff
9/22/2005 8:50:02 AM
macromedia flash flash remoting:
Hi people,
I have been trying flash remoting and have been connecting
to a cfc on my server.
This works locally but when placed on server fails.

Heres my code, must be a targeting issue.


#include "NetServices.as"
#include "NetDebug.as"
var gwUrl;
var gatewayConnection;

var typeResponder=new Object();
typeResponder.onResult = function (types_array){
_root.output_txt.text = "";
for (var i=0;i<types_array.length;i++) {
_root.output_txt.text = _root.output_txt.text + " , " + types_array.NAME;

}

}


gwUrl="http://awebsiteurl.co.uk/flashservices/gateway/";
NetServices.setDefaultGatewayUrl(gwUrl);
gatewayConnection=NetServices.createGatewayConnection();
_root.output_txt.text = "CONNECTING TO GATEWAY";

var productsService = gatewayConnection.getService("core/bagQuerys");
productsService.GetCatalogue(typeResponder);
Re: remoting working locally but not when live enelkill
9/25/2005 9:49:14 AM
i have the same problem but like you i couldn't solve it, my flush connetct to
..net xml web service and use it, it if fine when i test it in flash or open it
locally but like your problem when i tried to open it from iis
(http://localhost/myflash.htm) it doesnt work. as you i need help please help
us my dear friends.
Re: remoting working locally but not when live doorman
9/28/2005 4:29:00 PM
Hi there,

Re: remoting working locally but not when live daveluff
10/3/2005 12:32:09 PM
I got it to work by replacing / with a .

See below.
AddThis Social Bookmark Button