Never mind! I discovered that if I ran arrayCollectionData.refresh();
somehow it kicks the propertychange event into action, and everything
works fine now.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clinton D. Judy
Sent: Thursday, January 03, 2008 12:51 PM
To: flexcoders@yahoogroups.com
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dominique Bessette - Halsema
Sent: Thursday, January 03, 2008 12:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Databinding to ArrayCollections

 

you have to make your variable bindable

 

here's the documentation

 

http://livedocs.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]> 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.

 

 

 

Reply via email to