>Has anyone used flash remoting on a shared hosting environment, as Iım
>convinced its a problem with the path to the cfc...
What hosting provider? Does it work in your local development scenario? (you do have a development server right?)
Heres a snippet that should work for you:
/*
AS code
*/
obj = function () {
this. (r) {
trace("received:" + r);
}
this. (e) {
trace("error:" + e.details);
}
}
function init () {
NetServices.setDefaultGatewayUrl("http://www.lightwillrise.com:27000/flashservices/gateway");
var conn = NetServices.createGatewayConnection();
var service = conn.getService("cfc.sendmail",new obj());
service.sayHello();
}
init();
/*
in cfc/sendmail.cfc
*/
<cfcomponent>
<cffunction
name="sayHello"
access="remote"
output="false"
returntype="string">
<cfset var message = "hello">
<cfreturn message>
</cffunction>
</cfcomponent>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- RE: flash remoting help Adrian Lynch
- Re: flash remoting help Ryan Mitchell
- RE: flash remoting help Adrian Lynch
- Re: flash remoting help Ryan Mitchell
- Re: flash remoting help Mauricio Giraldo
- Re: flash remoting help Craig Earls
- Re: flash remoting help Ryan Mitchell
- Re:flash remoting help Mauricio Giraldo
- Re: flash remoting help Clint Tredway
- Re:flash remoting help Mauricio Giraldo
- Re: flash remoting help... Ryan Mitchell
- RE: flash remoting help... Mark A. Kruger - CFG
- Re: flash remoting help... Ryan Mitchell
- RE: flash remoting help... Mark A. Kruger - CFG
- Re: flash remoting help Ryan Mitchell