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

macromedia flash flash remoting

group:

Works on my comuter but not on others



Works on my comuter but not on others DonJuanDon
2/22/2005 10:53:13 PM
macromedia flash flash remoting: Hi,

I have made a flash movie which accesses some java code using flash remoting
over a JRun4 server. When I run the movie on my computer it works fine. When I
publish the movie and access it from a web browser using the url
"http://localhost:8100/" it works fine.

But when I try to access the movie from another computer over a LAN network,
the flash remoting part does not work. The flash movie is displayed on the
other computer and works fine, but as soon as you need to make any flash
remoting calls to a java class the movie fails. I dont get any Status errors,
it seems as if the call dies and nothing happens.

Any ideas??
I have attached my code which I use to make my connection if anyone is
interested.


--------------------------------------------------------------------------------
-------------------------------------
#include "C:\Program Files\Macromedia\Flash MX 2004\en\First
Run\Include\NetServices.as"

if (inited == null) {
inited = true;
NetServices.setDefaultGatewayUrl("http://localhost:8100/gateway");
gatewayConnectionDB = NetServices.createGatewayConnection();
service = gatewayConnectionDB.getService("testRemoting", this);
}

--------------------------------------------------------------------------------
-------------------------------------

Does that fact I use such a specific path for the include matter.

Thanks
Re: Works on my comuter but not on others DonJuanDon
2/22/2005 10:55:08 PM
sorry i think the attached code did not appear correctly. Here is the full
version

#include "C:\Program Files\Macromedia\Flash MX 2004\en\First
Run\Include\NetServices.as"

if (initedDB == null) {
initedDB = true;
NetServices.setDefaultGatewayUrl("http://localhost:8100/gateway");
gatewayConnectionDB = NetServices.createGatewayConnection();
service = gatewayConnectionDB.getService("testRemoting", this);
}
AddThis Social Bookmark Button