Ok, so I tried the hello world example below and still can't get it to work.
When I use cfinvloke to test it works via web browser.
http://www.adobe.com/devnet/coldfusion/articles/startremoting.html Here is my Code:
import mx.remoting.*; // I switched to this instead of the old #include in the
example.
function Result()
{
//receives data returned from the method
this.onResult = function(result){
trace("Data received from server : " + result);
}
this.onStatus = function(error){
trace("Error : " + error.description);
}
}
NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("com.macromedia.test.HelloWorld", new Result());
server.sayHello();
I am running the CF Sever 7,0,2,142559 on IIS.
I have a the HelloWorld.cfc file in the wwwroot/com/macromedia/test
directory and I am the calling the .swf file after it is published.
When I try to view it through the browser or flash 8 I just get a blank screen.
Can someone please help me with this. I have been working on this all day and
am about to throw in the towel. I'm sure this is something simple.
Thanks
Dave