Yes, it indeed removes all items from the TileList (same like the other
approaches mentioned by Clint) but if I try after this to populate the
TileList with new items I get the exception. So what can I do to load new
items into a TileList that had items before but was cleared?

 

Thanks for any hints!

Sascha

 

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Webdevotion
Sent: Sunday, 07 January, 2007 21:56
To: [email protected]
Subject: Re: [flexcoders] How to clear a TileList of its items?

 

Oh yes,

To remove all items from a tilelist you just use

collection = new ArrayCollection();

In my example the dataprovider is refilled as a proof of concept.
Commenting the line:

collection = new
ArrayCollection([{first:'John'},{first:'John'},{first:'John'},{first:'John'}
,{first:'John'},{first:'John'},{first:'John'},{first:'John'},{first:'John'},
{first:'John'},]); 

will result in a clean Tilelist instance ; )





 

Reply via email to