Hi Doug,
Check out the examples/flexjs/RemoteObjectAMFTest example. I'm not the
expert on this stuff, but I think you would do something like:
<js:RemoteObject id="roSendEmail" destination="ColdFusion"
source="{relativePath}SendEmail"
result="roSendMailResultHandler(event)
fault="roFaultHandler(event)"/>
And
var mailer:Object = {sendto:"[email protected]", from:"me", subject:"New
Info",
html:1, message:message};
this.roSendEmail.send("sendmail", [mailer]);
RemoteObject is pretty new. We haven't implemented the equivalent of
mx:method yet.
Good luck,
-Alex
On 9/13/17, 9:40 PM, "doug777" <[email protected]> wrote:
>From the example it's not clear to me how to use this with CF.
>
>Using following as an example, how would this translate into the new js
>tag.
>
><mx:RemoteObject id="roSendEmail" destination="ColdFusion"
>source="{relativePath}SendEmail">
> <mx:method name="sendmail" "
>fault="roFaultHandler(event)"/>
></mx:RemoteObject>
>
>var mailer:Object = {sendto:"[email protected]", from:"me", subject:"New
>Info",
>html:1, message:message};
>this.roSendEmail.sendmail(mailer);
>
>Doug
>
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7C%7Cb6fc3233905442163aca08d
>4fb2abe8a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636409608385326241&
>sdata=d%2FywojZG5o25AQy1mZS9vd43%2FIIIZTkgXM0yuxYukxo%3D&reserved=0