A structure in CF should turn into a Generic object in Flex (AS3).
Have you checked documentation, I'm sure there is a data type map
somewhere. It took me less than 5 minutes to find this page
http://livedocs.adobe.com/coldfusion/8/htmldocs/UseFlexDataService_10.html .
Yes, create a Value Object CFC and a Value Object AS3 Class. Alias
them appropriately. The return type from your CFC Method will be the
name of the class.
If you want to know how dataProviders work, open up the framework code
and take a look.
Dan Vega wrote:
I am new to Flex and I have some questions about data types. I have a
method in ColdFusion that returns a structure. I heard that this is
automatically converted for me. I was wondering if anyone can point me
to article that explains what types in CF are converted to in Flex. I
put a break point on my result and it just looks like an object.
A follow up to that is there a method that I can use that will return
the type of object I am working with?
---------
Completely separate how does the data provider for different
components such as the tree and datagrid work? I have datagrids
working with arraycollections and xmlcollections. Is there a specific
format for the dp to work?
Thank You
Dan
--
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711 | Phone: 1-203-379-0773
--
Adobe Community Expert
<http://www.adobe.com/communities/experts/members/JeffryHouser.html>
My Company: <http://www.dot-com-it.com>
My Podcast: <http://www.theflexshow.com>
My Blog: <http://www.jeffryhouser.com>