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
structure, not in my app, here's the stack trace in case it helps.
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChil
d()
at mx.core::UIComponent/removeChild()
at
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDi
splayList()
at
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::updateDi
splayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
_____
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Clint Modien
Sent: Sunday, 07 January, 2007 14:03
To: [email protected]
Subject: Re: [flexcoders] How to clear a TileList of its items?
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] <mailto:[EMAIL PROTECTED]> com> wrote:
Thanks Clint, but all of them result in the same exception. Any other ideas?
_____
From: [email protected] [mailto: flexcoders@ <mailto:flexcoders@>
yahoogroups. <http://yahoogroups.com> com] On Behalf Of Clint Modien
Sent: Sunday, 07 January, 2007 10:40
To: [email protected]
Subject: Re: [flexcoders] How to clear a TileList of its items?
I would try any new non-null complex type:
new Object();
new Array();
new ArrayCollection();
On 1/5/07, Sascha < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> com> 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
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 would I have to do additionally to properly initialize the TileList?
Sascha