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
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); }
Don't see what you're looking for? Try a search.
|