Flash Remoting not working
3 Message(s) by 3 Author(s) originally posted in flash and cfml
| From: david_sternberg |
Date: Tuesday, March 20, 2007
|
Ok, so I tried the hello world example below and still can not get it to work.
When I use CFINVLOKE to test it works via web
browser .
http://www.adobe.com/devnet/Cold Fusion/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
ColdFusion Sever 7,0,2,142559 on IIS.
I've 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've been working on this all day and
am about to throw in the towel. I'm sure this is something simple.
Thanks
Dave
| From: Keltaz |
Date: Tuesday, June 19, 2007
|
I'm facing the same issues, try putting your helloworld.CFC in the
c:/cfusionMX7/wwwroot/
folder directly. I do not understand why tho, can
someone please explain to my [b]why does the actual .CFC files have to be in
that folder? Why can not I map them to another location??[/b]
| From: Chuck1411 |
Date: Tuesday, June 26, 2007
|
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.
Next Message: CFMX7 app not working on server
Blogs related to Flash Remoting not working
Rich Internet Applications: State of the Union
Only some of them settle down in the toolbox of a professional programmer
working on enterprise business applications. The technical excellence of any software is important, but it’s
not the only component in its success.
...
Re: I don't think Flash Remoting service was installed with Coldfusion
From what I've been reading http://www.servername.com/flashservices/gateway is supposed to give a blank page if it's
working, a 404 if
not. On my production server I do get the blank page but on my dev server I do
not.
...
Flash Remoting and ColdFusion
I'm trying to implement some
Flash Remoting in a
Flash project to talk to a
ColdFusion MX 7 back end. My code to see if it's
working or
not is really really simple: My actionScript: import mx.
remoting.Service; var myCFCService = new
...
Flash Remoting from Flash Media Server over SSL
My application has no problem connecting to
coldfusion using
flash remoting with the defaultGateway url set to "https://www.mysite.com" (ie over SSL) However In main.asc, on the
Flash Media Server When
Flash Media server attempts to
...
My First ColdFusion Web Service
My application uses the OnRequest() event method in the Application.cfc
ColdFusion component and as you may or may
not know, doing so blocks the use of web services and
flash remoting. To get around this, first I created a directory for
...
Permanent ComboBox Prompt in Flex 2
Its having holiday here in india for kite festival. In a morning i was checking Jesse’s website and i found that he is again having some interesting problem regarding ComboBox Prompt. I guess, i sorted out the problem.
...