XMLList methods, like Array(), do not dispatch the events necessary to automaticlly update the UI.
Wrap the XMLList in and XMLListCollection, then use the XMLListCollectionAPI to modify the dataProvider. var xlData:XMLList = myXML.children(); //or whatever e4x expression _xlcDataProvider = new XMLListCollection(xlData); //this var is an instance var typed as XMLListCollection and the list dataProvider is bound to it. xlcDataProvider.removeItemAt(i); //will update the UI without re-assigning the dataProvider, avoiding a full refresh. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Olsen Sent: Thursday, October 04, 2007 9:51 AM To: [email protected] Subject: [flexcoders] Quick Question List & XMLList Hello Everyone, I have a list bound to a XMLList and I delete an element from the list and it wouldn't automatically refresh the list So I reset the dataprovider doing something like this delete(tvMaster.userList[i]); tvMaster.masterObject.userDispList.dataProvider = tvMaster.userList; I am just checking if there is a more efficient way to do this. -Christopher

