RE: [flexcoders] How to clear a TileList of its items?

2007-01-07 Thread Sascha
or any help! Sascha _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Webdevotion Sent: Sunday, 07 January, 2007 21:53 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to clear a TileList of its items? Hey Sascha, Try to compile and use my e

Re: [flexcoders] How to clear a TileList of its items?

2007-01-07 Thread Webdevotion
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 ArrayCollection({first:john},{first:john},{first:john},{first:john},

Re: [flexcoders] How to clear a TileList of its items?

2007-01-07 Thread Webdevotion
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 compil

RE: [flexcoders] How to clear a TileList of its items?

2007-01-07 Thread Sascha
hints! Sascha _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Webdevotion Sent: Sunday, 07 January, 2007 21:56 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to clear a TileList of its items? Oh yes, To remove all items from a tilelist you

Re: [flexcoders] How to clear a TileList of its items?

2007-01-07 Thread Webdevotion
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'},{firs

RE: [flexcoders] How to clear a TileList of its items?

2007-01-07 Thread Sascha
at mx.core::UIComponent/::callLaterDispatcher() _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien Sent: Sunday, 07 January, 2007 14:03 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to clear a TileList of its items? Odd.

Re: [flexcoders] How to clear a TileList of its items?

2007-01-06 Thread Clint Modien
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 of its items? I would try any new non-null comple

RE: [flexcoders] How to clear a TileList of its items?

2007-01-06 Thread Sascha
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

Re: [flexcoders] How to clear a TileList of its items?

2007-01-06 Thread Clint Modien
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 Ti

[flexcoders] How to clear a TileList of its items?

2007-01-05 Thread Sascha
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