>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]

Reply via email to