No specific recommendations here, but In a model/view architecture, the views(MCs) listen for changes to the data, not the other way around.
The list classes have a free list where unused renderers hang out until needed. A collectionChange event causes the list to re-apply data to the list of renderers and put extra ones on the free list or create others if the free list is empty ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of flexaustin Sent: Thursday, August 21, 2008 4:24 PM To: [email protected] Subject: [flexcoders] Dictionary or Array or Linked list? I was wondering if anyone has had to do something like this before? (FYI these are AS3 objects not mxml) I have a collection of MC's (which contain a title and two images). These MC's are created dynamically depending on data brough in via httpservice (xml). I was wondering how do I keep track of these items so I can update them if the data changes? Right now I cache the data the first time I get it from the server then the n+1 times I go to the certain screen it skips the httpservice call and pulls from my cached data (array). That all works OK. But now I want to first populate the MC's with the cache then call the httpservice and when it comes back update my MC's so their title and images change, but I also need to add any new MC's if new to the world data exists or remove old MC's that have no data? Oh, and they all need to remain in alphabetical order. Is there a term for this kind of data container? I have been looking at Linked List but not sure if something else would be better. I looked at Object Pools, but I don't want to store the objects because of memory issues as I have 500 plus MC's on screen at once so OP's won't work here. If you can point me in the right direction I would appreciate it. THanks, J

