Hi
I am having trouble with flash remoting when taking my site onto a live server. Everything works ok on my local machine using the following actionscript code -
#include "NetServices.as"
#include "NetDebug.as"
function Result()
{
this.onResult = function(result)
{
trace("Data received from server : " + result);
winetext.text = "Data received from server : " + result;
}
this.onStatus = function(error)
{
trace("Error : " + error.description);
winetext.text = "Error : " + error.description;
}
}
NetServices.setDefaultGatewayUrl("http://test.mysite.co.uk/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("mysite.text", new Result());
server.getmaintext();
To go live I changed the following code
NetServices.setDefaultGatewayUrl("http://test.mysite.co.uk/flashservices/gateway");
but the text called fails to show in the movie.
I have checked the flashservices through my browser and I get the following -
http://localhost:8500/flashservices/ - Blank Screen
http://test.mysite.co.uk/flashservices/ - HTTP 404 - File not found error
Is this the problem? Any help is appreciated.
Adrian
hoddle10 - 25 Nov 2003 10:58 GMT
Can I also add that I have just tested my app on my local machine through a browser and the text doesn't show there either.
Any Ideas?
Adrian
hoddle10 - 25 Nov 2003 11:33 GMT
Scratch that it works fine on my local machine.