This also didn't help. Is there any invalidate method I have to call at a
certain time? The dataProvider might be empty after this but it feels as if
my TileList has still garbage in it or I need to wait until a screen
refresh. The exception also occurs somewhere in the depths of the component
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
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
Hey Sascha,
Try to compile and use my example. Just create a new Flex Project.
Maybe you ran into a debug error. Please be sure that all your debug
sessions have stopped in the debugger by pressing the red square button.
Sometimes I have to restart my Builder in order to get rid of those
Please look into my example more closely.
When you click the button I first clear the list and then fill it again with
new items from an arraycollection ; )
collection = new ArrayCollection(); // clears the list
collection = new
Thanks for the example Bram but it doesn't help me in this case. My
implementation is a bit more involved so let me explain the details .
My custom TileList extends TileList and is fully written in AS. The
application I'm working on has a menu like the ones that many applications
have. It has a
I would try any new non-null complex type:
new Object();
new Array();
new ArrayCollection();
On 1/5/07, Sascha [EMAIL PROTECTED] wrote:
I'm trying to initialize a TileList after items were put into it so that
it
is empty again and I can load new items into it after that. I'm setting
the
Thanks Clint, but all of them result in the same exception. Any other ideas?
_
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Clint Modien
Sent: Sunday, 07 January, 2007 10:40
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to clear a TileList
Odd... did you try setting the dataprovider to a new object instead of
setting it too null?
You could also try:
yourTileListID.dataProvider.removeAll();
On 1/6/07, Sascha [EMAIL PROTECTED] wrote:
Thanks Clint, but all of them result in the same exception. Any other
ideas?
I'm trying to initialize a TileList after items were put into it so that it
is empty again and I can load new items into it after that. I'm setting the
TileList dataprovider to null but when I then try to load new items into it,
it gives me an exception: Parameter child must be non-null.
What
10 matches
Mail list logo