I have a datasource, which I show as a list in a Flex UI.
I refresh the list periodically, One of my UI requirements is to gracefully show when the datasource removes an item from the list, So I'm correlating the current list against the incoming datasource.
The correlation process is this:
Refresh the datasource.
Loop through the existing dataset, Check each ID against the incoming items, if I can't find a match, flag the existing item as closed. (UI handles this flag on item update and does it's visual trick.)
On the next refresh of data, look for flagged items in the current list and remove them.
Here's my question, am I doing this in the most efficient manner? Or is there some simple trick I'm missing?
Update: would a JAXB equivalent for as3 help here?