I think you might be able to implement this using the filter function on the
arrayCollection.  You would create a filterfunction that would check to see
if your item is the currently selectedItem if it was return false.  For all
the others you would return true.

This would allow you to keep the data in your original arrayCollection but
only display the items you wish.  Without having to worry about callLater()
or any other outside code.

Here are the docs that talk about filters (skip the sorting)
http://livedocs.macromedia.com/flex/2/docs/00000504.html#413783

simeon


On 1/5/07, Joe <[EMAIL PROTECTED]> wrote:

  Is it possible to remove an item from array and bring it back when you
remove another item.

I have a <mx:list of clients that is using a button as an item
renderer. When one of these buttons is clicked it opens a showcase
view. The button label now becomes the showcase label and the button is
removed from the list. When another button is clicked I would like to
toggle the between the showcase and the list. I am having a hard time
with the addItemAt(). I have tried the callLater() method. Any help
would be appreciated.

Reply via email to