to updating controls is to use the dataProvider API, which the Array
class supports.
aDataProvider.addItem(oItem); //API method WILL update the control
aDataProvider.push(oItem); //array method will NOT update the
control
aDataProvider[n] = oItem; //array method will NOT update the
control
I don't know about 2.0
Tracy
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Larry Liang
Sent: Wednesday, April 26, 2006 4: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
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

