Thanks. That works perfect !
Joe James Work: (562) 658-3670 Tie Line: 8-320-3670 CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. NOTICE TO RECIPIENT: If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them. Thank you. "Simeon Bateman" <[EMAIL PROTECTED]> Sent by: flexcoders@yahoogroups.com 01/05/2007 02:32 PM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject Re: [flexcoders] Toggle items in an Array collection 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.
gifS8lqLv92Mv.gif
Description: GIF image
gifvoGm0E25kO.gif
Description: GIF image