The largest hammer is invalidateList(). I"d be putting a listener for collectionChange on the dataprovider to see if you're getting notifications or not.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Monday, May 28, 2007 7:59 PM To: [email protected] Subject: Re: [flexcoders] Struggle with TileList refresh Yes I think my XML is well formed - not sure how to trace the overrides set data()............ Interestingly I did find that if I change the TileList display dimensions to be very small then restore to original size this obviously forces the itemRenderer to refresh - there's gotta be a better way to force it without using a resize effect. Tracy Spratt wrote: > Is the overrides set data() function in the renderer being called when > you expect? > > > > And you are using the XML api (appendChild, etc.) > > Tracy > > > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Ben Marchbanks > Sent: Monday, May 28, 2007 9:21 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: Re: [flexcoders] Struggle with TileList refresh > > > > Hmmmm.... after rewriting the process to use XML the result is the same. > > itemRenderer just will not refresh its display while the underlying XML > dataProvider is actually modified. > > I'm about to abandon the TileList in favor of a AS created display array > after > spending 2 days on what should be a simple implementation. I still > believe > there's a simple solution - something I am missing. > > Tracy Spratt wrote: >> For dynamically changing data, avoid XMLList since, like Array, its >> methods do not dispatch the events necessary to update the ui. >> >> >> >> Instead, use XML, or XMLListCollection. >> >> >> >> Tracy >> >> >> >> ________________________________ >> >> From: [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> > ] On >> Behalf Of pdflibpilot >> Sent: Monday, May 28, 2007 10:59 AM >> To: [email protected] <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders%40yahoogroups.com> >> Subject: [flexcoders] Struggle with TileList refresh >> >> >> >> I have a tileList that does not update its itemRenderer when the >> dataProvider is changed. In one scenario I have a drag and drop to the >> TileList that always updates the dataProvider (XMLList) but will not >> reflect the change in the display. I can force a refresh by iterating >> over the XMLList like so after a drag/drop event >> >> **workaround*** >> var n = screensList.length() >> for(var i:int=0; i < n; i++){ >> IList(navScreens.dataProvider)[i].displaySeq = i >> } >> >> Okay that works, the TileList gets refreshed, although I would expect >> there is something I am missing that would do this automatically. >> >> Scenario 2 >> I created a new state that presents a small editing window to change >> the data for items in the same TileList - this works fine for changing >> the data directly in the dataProvider(XMLList). When the state is >> returned to baseState the TileList once again does not refresh - If I >> click on the item just edited and reopen the editor all the changes >> appear in the editor window !. Trying the workaround used in Scenario >> 1 does not refresh the list. >> >> Is there not a fool-proof method to force TileList to always reflect a >> change in its dataProvider ? >> >> >> >> > -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com <http://www.alQemy.com> ::: magazooms ::: digital magazines http://www.magazooms.com <http://www.magazooms.com> Greenville, SC 864.284.9918

