Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Remoting - works locally but not remotely

Status
Not open for further replies.

ColdFusionKing

Programmer
Dec 5, 2002
145
GB
Hi guys,

I have this flash file which uses flash remoting to call a coldfusion component method and returns the results back to flash. I'm invoking the swf file in the html <object> tag. When I browse this file locally ( everything works as expected, but when I copy this swf and html file to another computer in my network, I don't see anything being returned. Flash remoting does not seem to call the coldfusion component. Does anyone know how this can be resolved?

#include &quot;NetServices.as&quot;
#include &quot;NetDebug.as&quot;

if (init == null)
{
init = true;

// set the default gateway URL (this is used only in authoring)
NetServices.setDefaultGatewayUrl(&quot;
// connect to the gateway
gateway_conn = NetServices.createGatewayConnection();

// get a reference to a service
myService = gateway_conn.getService(&quot;Service Folder.CFC_Name&quot;, this);
}
 
what shows up in the debugger?

is the connection etc being made?

test it with the fla on another computer to find out.
 
it does seem to connect to the cfc with flash remoting. But why should I have the fla copied over to another system. I thought all you need is a swf and an html file which invokes the swf.
 
you do...but you say that nothing shows on other machines in the network

test on another machine will help determine if this a network problem or a flash one.....looks like a network problem
 
I have tested it on more than two pc's but with no luck. If I test the moive (fla) on the individual machines, I can see flash talking to CF and it all works. But when I call the swf in html passing it the input values using the flashvars param attribute, it does'nt seem to talk to ColdFusion if I browse the html from my webserver ( But if I directly open the file from the folder (d:\inetpub\ it all works.
 
did you find an answer to this question, i'm having the same prob that when i use it locallly the swf works fine(gatewayUrl is but when i go to call this remotly it won't do anything(gatewayUrl is can anyone help me with this
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top