You don't need to do that; Array's in Flex already
have the DataProvider API (in 1.5), and thus generate events.
So, if you are changing an index, ensure you do: my_array.addItem(someItem)
Instead of:
my_array.push(someItem)
If you do the addItem, it'll trigger the event, and update whatever
controls is bound to the array. Only reset the array entirely if the whole
array changes.
----- Original Message -----
From: superabe superabe
Sent: Thursday, November 03, 2005 11:11 AM
Subject: [flexcoders] Force binding for Arrays I realize that we can force binding for Arrays to occur, when modifying one
of their indexes by doing something like
Model.myList = Model.myList
Is there any performance reasons or other reasons why this would be a bad
idea to use?
TIA
-
superabe
-- 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
YAHOO! GROUPS LINKS
|
- Re: [flexcoders] Force binding for Arrays JesterXL
- Re: [flexcoders] Force binding for Arrays superabe superabe
- RE: [flexcoders] Force binding for Arrays Matt Chotin