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:[EMAIL PROTECTED] On > Behalf Of pdflibpilot > Sent: Monday, May 28, 2007 10:59 AM > To: [email protected] > 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 ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918

