That will work but it can be more expensive (cpu processing and speed)
depending upon the size of your data.
I believe you will need to make your binding look like:
{MyDataObject(arrayCollectionData.getItemAt(0)).infoOne}
In this case replace MyDataObject with the Class that contains infoOne.
Best.
Ben
_____
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Clinton D. Judy
Sent: Thursday, January 03, 2008 1:27 PM
To: [email protected]
Subject: RE: [flexcoders] Databinding to ArrayCollections
Never mind! I discovered that if I ran arrayCollectionData.refresh();
somehow it kicks the propertychange event into action, and everything works
fine now.
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Clinton D. Judy
Sent: Thursday, January 03, 2008 12:51 PM
To: [email protected]
Subject: RE: [flexcoders] Databinding to ArrayCollections
1. I already have the [Bindable] meta tag in place. Do I need to have
it in front of each of my arraycollections, or is one at the beginning of
the first AC enough?
2. Don't they have to be public vars?
3. Whenever the webservices are called and the new data is applied to
the arraycollections, is that enough for the propertyChange event to be
called?
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Dominique Bessette - Halsema
Sent: Thursday, January 03, 2008 12:10 PM
To: [email protected]
Subject: Re: [flexcoders] Databinding to ArrayCollections
you have to make your variable bindable
here's the documentation
http://livedocs.
<http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm
?context=LiveDocs_Parts&file=00001653.html>
adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs
_Parts&file=00001653.html
try
[Bindable]
private var arrayCollectionData:ArrayCollection= new ArrayCollection();
On 1/3/08, Clinton D. Judy <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> com>
wrote:
Can someone explain in detail how data binding text fields to an
ArrayCollection works, in layman's terms? I have 133 "Data binding will not
be able to detect assignments to _______" errors, and I just realized that
it's getting the correct data the first time it connects to the
ArrayCollection, but doesn't update from there any time the data changes.
All of my binds look something like
{arrayCollectionData.getItemAt(0).infoOne}, and it's clean. But how can I
get that to automatically change whenever
{arrayCollectionData.getItemAt(0).infoOne} changes?
Clinton Judy
Web Developer
Glenn O. Hawbaker, Inc.