macromedia flash flash remoting:
This is probably simple stuff, but I've looked at it several different times now and can't figure out what's wrong.
I have verified that I have Flash services installed and running and have successfully connected to the gateway.
NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("public.macromedia.test.HelloWorld", new Result());
server.sayHello();
However, on the getService call, I get the error:
Error: "Service threw an exception during method invocation: No service named pub.macromedia.test.HelloWorld is known to Flash Remoting."
Problem: The movie could not create the Service Object because it doesn't exist. Either the Service Object is misspelled, the path is incorrect, the object name is incorrect, or the application is trying to connect to an unsupported service.
Solution: Ensure that the service and/or object name and paths are correct.
I have a .cfm file that calls this CFC and it works fine!
<cfoutput>
<cfinvoke component="pub.macromedia.test.HelloWorld"
method="sayHello"
returnVariable="message" />
#message#
</cfoutput>
All of the debugging I can find tells me to verify that the name of the service and directory is correct. If it's working in the .cfm, then that should be the same for the .fla?
Any help would be appreciated. I'm stuck. :(