Using the <mx:arguments> tags in the <mx:method> tag worked also.  
Wish i would have found that help page yesterday!  :)

Here is my final code using the arguments.


<?xml version="1.0" encoding="utf-8"?>
<mx:ApolloApplication xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" pageTitle="Flex Remoting Example">

        <mx:RemoteObject id="myFlashRemote" destination="ColdFusion" 
source="test" endpoint="http://demo.dev/flex2gateway/";> 
        <mx:method name="echoString">
            <mx:arguments>
                <input>{send.text}</input>
            </mx:arguments>
        </mx:method>
        </mx:RemoteObject> 
     
<mx:Button x="141" y="280" label="Button" 
click="myFlashRemote.echoString()" />

<mx:TextArea id="source" width="356" height="201" 
text="{myFlashRemote.echoString.lastResult}" x="10" y="10"/>

<mx:TextInput x="101" y="229" id="send"/>

</mx:ApolloApplication>




--- In [email protected], "Peter Farland" <[EMAIL PROTECTED]> 
wrote:
>
> Did you see the example in the documentation for <mx:RemoteObject>?
>  
> 
http://livedocs.adobe.com/flex/2/langref/mx/rpc/remoting/mxml/RemoteOb
je
> ct.html
>  
> There's a code example at the bottom of the page.
>  
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of rchadgray
> Sent: Thursday, March 22, 2007 10:25 AM
> To: [email protected]
> Subject: [flexcoders] Re: flash remoting
> 
> 
> 
> Another question.
> 
> When using the web service tag i was able to specify with operation 
> and request tags what function in the CFC i wanted to use and what 
> parameter i was passing to the web service.
> 
> <mx:WebService id="myWebservice" 
> wsdl="http://demo.dev/test.cfc?wsdl <http://demo.dev/test.cfc?
wsdl> "
> useProxy="false" >
> <mx:operation name="echoString">
> <mx:request>
> <input>
> {login.text}
> </input>
> </mx:request>
> </mx:operation>
> </mx:WebService>
> 
> With the RemoteObject tag the operation and request tags dont seem 
to 
> work (even though auto-complete in flex builder offers them). When 
i 
> save the files i get parse error on <mx:operation>
> 
> How do i use mx:RemoteObject and specify what attribute i am 
passing 
> to the method?
>


Reply via email to