all groups > macromedia flash flash remoting > november 2003 >
You're in the

macromedia flash flash remoting

group:

Error opening URL "http://test.mysite.co.uk/flashservices/gateway"


Error opening URL "http://test.mysite.co.uk/flashservices/gateway" hoddle10
11/25/2003 10:28:39 AM
macromedia flash flash remoting: 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

Re: Error opening URL "http://test.mysite.co.uk/flashservices/gateway" hoddle10
11/25/2003 10:58:31 AM
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

Re: Error opening URL "http://test.mysite.co.uk/flashservices/gateway" hoddle10
11/25/2003 11:33:04 AM
Scratch that it works fine on my local machine.

AddThis Social Bookmark Button