What kind of change did you make to the array object? If you assigned
another array to dataProvider, I'd expect the ComboBox to update. If you
did

    myDataProvider[0] = newItem;

or

    myDataProvider.splice(3, 1);

I wouldn't.

- Gordon


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Larry Liang
Sent: Wednesday, April 26, 2006 1:10 AM
To: [email protected]
Subject: [flexcoders] Binding with arrays in Flex 2 beta 2


According to documentation, in Flex 1.5, you shouldn't bind your
dataprovider to a raw array object, because array elements do not
broadcast [ChangeEvent]. And therefore the flex controls won't update
itself and refelct the changes.

I just tried to bind an array object to a comboBox dataprovider in
Flex 2. And it seemed that the changes made to the array object did
get updated in the combo box control.

I was wondering if this has been fixed in flex 2 purposly, or due to
some other reasons.

Thanks,

Larry









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to