all groups > macromedia flash flash remoting > february 2004 >
You're in the

macromedia flash flash remoting

group:

Returning Data from Flash Back to Cold Fusion


Returning Data from Flash Back to Cold Fusion Shapman
2/25/2004 12:40:34 AM
macromedia flash flash remoting:
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.
Re: Returning Data from Flash Back to Cold Fusion targetplanet
2/27/2004 6:36:30 PM
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
AddThis Social Bookmark Button