Title: Message
First, make sure you're using the Flash Remoting Components for Flash  MX.
http://www.macromedia.com/software/flashremoting/downloads/components/
 
Then, once you have the flash gateway connection set up in actionscript and can call a method that returns something, use the NetConnection Debugger inside Flash MX when you test your swf.  The debugger has an Events column on the left with the event data on the right.  Click on Results under the Events column, and the result passed from the CFC will show up on the right side of the debugger.  You'll immediately see how the data was returned and the how Flash has organized the result.
 
There's a simple example here: ftp://ftp2.allaire.com/support/serat/com.zip that can be run by unpacking the zip into the CFMX document root and then requesting the url http://localhost/com/macromedia/serat/flashremoting/cgi/index.cfm.  This example assumes that you are running CFMX on a web server listening to port 80.  This example is just a contrived example of having a cfc convert the cgi scope to a query object, and then return that query object to Flash for display. 

If you open the fla file and run the debugger, you'll see what I mean about using this tool to know how to handle the data.  I'm sure that there are more advanced methods, such as DataGlue.
 
See also:
 
http://www.macromedia.com/support/flash_remoting/ts/documents/presalesfaq.htm
 
http://www.macromedia.com/support/flash_remoting/ts/documents/fr_combo_box_key_select.htm
 
Hope that helps.

-- Steven Erat
 
 
 
-----Original Message-----
From: Mehdi, Agha [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 4:35 PM
To: '[EMAIL PROTECTED]'
Subject: [CFCDev] Flash Recordset

Hi all,
I am working on a demo application and it's my first time doing Flash Remoting. I have tried everything I could think of but I can't display the results fetched from CF components in the flash movie. I can read the column names of the query returned from the component but I can't figure out the way to retrieve the data from those columns. Any ideas on how to get the records from the recordset inside flash?

Thanks


                          
Agha I. Mehdi
Web Developer
Littler Mendelson
Work: 415-288-6362
Cell: 510-364-5298  

----
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com


Reply via email to