all groups > macromedia flash flash remoting > june 2004 >
You're in the

macromedia flash flash remoting

group:

gateway url not defined in flash 7


gateway url not defined in flash 7 allan_h
6/15/2004 5:06:19 AM
macromedia flash flash remoting:
I have a connection to a Coldfusion function working fine using Flash MX. When
I save as Flash MX 2004 (so I can use the components in MX 2004), the player
comes up with this error:

NetServices warning 4: createGatewayConnection - gateway url is undefined

Here's the code for the connection:
gwUrl="http://lingolicence.rangiruru.school.nz:8500/flashservices/gateway/";
NetServices.setDefaultGatewayURL(gwUrl);
gatewayConnection=NetServices.createGatewayConnection();

I have these lines on frame 1:
#include "NetServices.as"
#include "NetDebug.as"

I have also declared the variables on frame 2:
var gwUrl;
var gatewayConnection;

I'm guessing it's maybe a case-sensitivity issue or stricter variable typing,
or maybe some new method, but I can't find the problem. I'm still using
Actionscript 1.0.

thanks in anticipation,
Allan
Re: gateway url not defined in flash 7 silkpuppet
6/15/2004 1:56:28 PM
I think you're right, it might be a case sensitivity issue. Try:

NetServices.setDefaultGatewayUrl(gwUrl);
Re: gateway url not defined in flash 7 allan_h
6/16/2004 8:36:28 PM
That's great, it works. Thanks.
AddThis Social Bookmark Button