Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / February 2005



Tip: Looking for answers? Try searching our database.

Works on my comuter but not on others

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DonJuanDon - 22 Feb 2005 22:53 GMT
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
DonJuanDon - 22 Feb 2005 22:55 GMT
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);       
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.