IF the CF returns a query, it should be an ArrayCollection in AS.  If you are 
passing a CF Array it will be an Array in AS.  At least according to Flex 3 
Bible:
CF             AS
String         String
Array          Array
Query          ArrayCollection
Struct         Object
CFC instance   Strongly type value object
Date           Date
Numeric        Number
XML Object     XML Object

Is your CFC currently returning an Array?  And can you change it to return a 
Query?

--- In flexcoders@yahoogroups.com, "Laurence" <lmacne...@...> wrote:
>
> Well, hmmm...  I can't rewrite it so data.course_fees is an ArrayCollection 
> -- when I change the 'EventVO.as' such that course_fees is an ArrayCollection 
> instead of an Array, it comes back from the database as null...  Perhaps 
> that's a problem with my CF code (EventVO.cfc and EventDAO.cfc)?  How do you 
> get CF to send data back as an ArrayCollection instead of an Array?  I'm 
> thinking that's not possible...
> 
> If I leave the EventVO.as alone, and course_fees is an Array, then I still 
> have the same problem in my ItemRenderer -- doesn't seem to matter if I make 
> listOfFees an Array or ArrayCollection...
> 
> 
> --- In flexcoders@yahoogroups.com, "Laurence" <LMacNeill@> wrote:
> >
> > Hmmm...  That's an idea...  data.course_fees is coming out of the database 
> > as an Array -- perhaps I should rewrite that so it comes out as an 
> > ArrayCollection from the very beginning...  I'll give that a shot...  (Yes, 
> > I know I can put an Array into an ArrayCollection, but if Array isn't 
> > behaving properly, I shouldn't use it at all, right?)
> > 
> > If I were to do something like:
> > listOfFees:ArrayCollection = new ArrayCollection(data.course_fees);
> > would that pass a reference to the ArrayCollection, or will that be making 
> > a copy?
> > 
> > --- In flexcoders@yahoogroups.com, "wrhinfl" <wrhinfl@> wrote:
> > >
> > > I thought array does not broadcast updates "nicely" (uniformly/as 
> > > expected), can you change the declaration of listOfFees from:
> > > [Bindable]private var listOfFees:Array;
> > > to:[Bindable]private var listOfFees:ArrayCollection;
> > >
> >
>


Reply via email to