Thanks to all who replied - good to know that it is actually possible.

Sid, thanks for this example, should help us to resolve the issue :)

On Fri, Jul 4, 2008 at 3:30 AM, Sid Maskit <[EMAIL PROTECTED]> wrote:

>   This definitely works. Just did it using CFC's.
>
> In MXML:
>
> <mx:RemoteObject id="dataManager"
> endpoint="[URL to your AMF gateway here: e.g.
> http://domain.com/flex2gateway/]";
> destination="ColdFusion"
> source="[path to your CFC here: e.g. folder.folder.file"
> >
> <mx:method name="requestAddressChange"
> result="requestAddressChange_result(event)" fault="server_fault(event)" />
> </mx:RemoteObject>
>
> Inside script within same MXML:
>
> this.dataManager.requestAddressChange(this.address0.text,
> this.password.text);
>
> Within cfc on server:
>
> <cfcomponent>
> <cffunction name="requestAddressChange" output="false" access="remote"
> returntype="String">
> <cfargument name="email" required="true" type="String">
> <cfargument name="password" required="true" type="String">
>
> <!--- Access arguments like this:
> #arguments.password
> #arguments.email#
> --->
> </cffunction>
> </cfcomponent>
>
> You'd need to declare the arguments differently, I think as parameters
> within a cfm file, but it should still work.
>
> Hope that helps.
>
> Sid Maskit
> CraftySpace.com
>
>  
>

Reply via email to