I am not completely sure, but aren't you supposed to <cfreturn/> somewhere
within the function for flex to pick it up? Also, why not just send back the
url to flex from coldfusion after the security handling and then just use
navigateToUrl() in flex?
Thanks for your reply. I added the cfreturn tag to my cfc but still get the error.
I see the point of your suggestion of sending back the URL to flex, but in reality we really want to have all the connections go through our ColdFusion server.
Is it possible to accomplish this, or must I go through flex in this case?
Have you tried creating a super simple cfc that just returns a string just
to see if it's configuration or the code that's failing?
Channel disconnected before an acknowledgement was received
It means Flex isn't receiving a resp[onse back from ColdFusion. There could be 2 reasons for this.
1) Your Application.cfc file implements onRequest(). If so, comment out the function. It is not allowed when you use Flash remoting.
2) The security checks you talk about involve page redirection, preventing ColdFusion from sending back a response. Test the effect of bypassing the security procedure.
@sir_teddy, thanks for your reply again.
Yes I have created a simple cfc that returns a string successfully (in fact I had used the same cfc and basically just commented out the cfcontent and cfheader tags, and returned the name of the file being requested in the cfreturn tag). When I un-comment the cfcontent tag from the code, the error comes back.
So I am really at a loss here...
@BKBK, thanks for replying.
1) I am not creating an Application.cfc file, nor do I have one in my CFC path.
2) I have not implemented the security checks yet, this is something I will do *after* I get this basic functionality to work...
sometimes I get a channel disconnected error the first time I calll something, then when I call it again from flex, it works? any ideas?