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
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197738
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to