Ok now I am starting to break down Clint's example so I understand
what is going on. I tossed out the AS just to kind of make me
understand how the tags are working together.
My question now is why cant I do this in my button click event:
myFlashRemote.echoString({send.text})"
Here is my current code and it works, but I want the text entered
into the TextInput tag to be passed to the remote object. Right now
I have static text in myFlashRemote.echoString()
<?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:RemoteObject>
<mx:Button x="141" y="280" label="Button"
click="myFlashRemote.echoString('a232322323')" />
<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>
My CFC:
<cfcomponent>
<cffunction name = "echoString" returnType = "string" output
= "no" access = "remote">
<cfargument name = "input" type = "string">
<cfset returned = arguments.input & "chad said">
<cfreturn returned>
</cffunction>
</cfcomponent>