Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / February 2004



Tip: Looking for answers? Try searching our database.

Returning Data from Flash Back to Cold Fusion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shapman - 25 Feb 2004 00:40 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.