Groups | Blog | Home
all groups > coldfusion flash integration > march 2007 >

coldfusion flash integration : Flash Remoting not working



david_sternberg
3/20/2007 6:55:36 PM
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

Keltaz
6/19/2007 2:55:08 PM
I'm facing the same issues, try putting your helloworld.cfc in the
c:/cfusionMX7/wwwroot/ folder directly. I don't understand why tho, can
someone please explain to my [b]why does the actual .cfc files have to be in
that folder? Why can't I map them to another location??[/b]
Chuck1411
6/26/2007 12:37:11 AM
might change the trace's to alert's.

I found the people at AsFusion to be particularly knowledgeable about the subject of Flash Remoting. The Realestate example of theirs is wonderful.
AddThis Social Bookmark Button