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

macromedia flash flash remoting

group:

createGatewayConnection


createGatewayConnection Cyont
4/21/2004 3:24:47 PM
macromedia flash flash remoting:
We are running a web server on Win 2003 with IIS, ColdFusion, Flash, and MS
SQL. I have a question about Gateway Connection.
In the GatewayConnection statement below,
var server =
NetServices.createGatewayConnection("http://localhost/flashservices/gateway"
);

http://localhost/flashservices/gateway
http://127.0.0.1/flashservices/gateway
http://"local domain name"/flashservices/gateway
http://"static IP address"/flashservices/gateway
All of these four methods successfully connect and load database records
from the SQL server when I run it through the flash .fla file. But when I
run the published html file of these with a web browser, only one of each
that exactly matches the actual script works. Is that supposed to be
working that way? Is there a way to make them all work through a web
browser?

Cyont

Re: createGatewayConnection OHSAH
5/4/2004 9:20:34 PM
I'm having the same issue.
For initial testing I will hardcode the reference to my test server whenever I
need to get a connection to the server.

In some other post I saw, they were suggesting an alternative like to read
from within flash where the request
is coming from, (not sure if this is possible or not) and take the host and
port number (if necessary) to get the connection to the server.

Another one is to dinamycally pass this information to your movies, (by
reading a config.file) as a parameter at the moment you are loading them. The
movie will read that parameter and use it to get a conection to the server.

Cheers

Alberto Ortega
OHSAH

AddThis Social Bookmark Button