I am working on an Flash Remoting application in which we need to return the
data generated in Flash back to a CFC to send the results to an instructor. Has
anyone performed this kind of task?
Thank you.
targetplanet - 27 Feb 2004 18:36 GMT
How much Data are you sending? Here is one whay to do it. In flash, you need
to create an Object to hold the data
myData = new Object();
Then populate the object with the data
myData.textData = someTextField.text;
myData.variableData = aVariable;
myData.arrayData = anArray;
Then in your call to the service, include the Object:
myservice.sendData(myData);
Here is the cfc that retrieves the data
<cfcomponent>
<cffunction name="sendData" access="remote" returntype="any">
<cfset data1 = Arguments.textData>
<cfset data2 = Arguments.variableData>
<cfset data3 = Arguments.arrayData>
<!---
Then you can do what ever you need to with the varialbe set above
--->
</cffunction>
</cfcomponent>
Hope this helps
Russ