Steven
Erat's now a Flash guy, too...You da man! Glad to hear it. And welcome to
the list. It seems these are your first posts here today, at least in quite a
while. For those that don't know him, Steven's a Macromedia support engineer (do
I have that right?) who is just a treasure trove of knowledge and
enthusiasm.
Agha,
there are many things that could get in the way of your getting started. I'll
just point out that I did an article on this very subject (and point to some
other examples and resources) in the March CFDJ. Check it out at
systemanage.com/articles/. I also have some useful stuff on my blog,
cfmxplus.blogspot.com. Just do a search for "flash". My only focus in those is
on helping folks get started with Flash and connection to the server (whether
with remoting or not), and I offer a few other tips you may find
handy.
/charlie
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Steven Erat
Sent: Tuesday, March 18, 2003 5:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [CFCDev] Flash RecordsetFirst, make sure you're using the Flash Remoting Components for Flash MX.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:Hope that helps.
-- Steven Erat
