The easiest way is to use Flash Remoting. With Flash Remoting you can just return the query or an Array of structs, from your CFC. And you would bind the grid's dataprovider to the result returned from flash remoting.
Hth, ---nimer -----Original Message----- From: Ewok [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 3:10 PM To: CF-Talk Subject: CFC and Flash datagrid I've got a small temp flash project with nothing more than a datagrid in it. The plan was to have a CF webservices send an array to flash to populate the grid but I'll be damned if I can figure out how. My grid has an instance name of my_grid. If I hardcode this into flash, it populates the grid. var thedata:Array=[{State:"Alabama",Abbr:"AL",County:"Autauga"},{State:"Alabama" ,Abbr:"AL",County:"Baldwin"},{State:"Alabama",Abbr:"AL",County:"Barbour"}]; my_grid.dataProvider=thedata; it spits out 3 columns with 3 rows of data perfectly. I have all the data in a database and built a cfc to return an array with access="remote" but I had no luck getting it into flash. (I get the expected results when I visit http://mysite.com/ws.cfc?wdsl) So I tried loadVariables() and put the same data into a txt file. &thedata:Array=[{State:"Alabama",Abbr:"AL",County:"Autauga"},{State:"Alabama ",Abbr:"AL",County:"Baldwin"},{State:"Alabama",Abbr:"AL",County:"Barbour"}]; & Nothing.... &thedata =[{State:"Alabama",Abbr:"AL",County:"Autauga"},{State:"Alabama",Abbr:"AL",Co unty:"Baldwin"},{State:"Alabama",Abbr:"AL",County:"Barbour"}];& Nothing again... How would I get the same results dynamically from CF? At this point, I don't care if it's a cfc or not. I'd just like to see something else happen! I'm running a default install of Flash MX 2004 Pro and all of the examples and tutorials I've found seem to be a little outdated. Thanks. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.2 - Release Date: 3/4/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197819 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

