[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread Tim Hoff
Hi Barry, Sorry to laugh a little, but parent.removeChild(this), is actually removing the itemRenderer display object; and leaving a hole in the TileList. There are a few ways to remove list items; from within an itemRenderer. But, most of them involve referencing the list's dataProvider

[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread roopeshjenu
--- In flexcoders@yahoogroups.com, calisza [EMAIL PROTECTED] wrote: After having a look around at various blogs, resources etc I'm stumped on the following : I have a TileList using a custom itemRenderer. The dataprovider is a standard ArrayCollection of objects. The itemRenderer

[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread Amy
--- In flexcoders@yahoogroups.com, calisza [EMAIL PROTECTED] wrote: After having a look around at various blogs, resources etc I'm stumped on the following : I have a TileList using a custom itemRenderer. The dataprovider is a standard ArrayCollection of objects. The itemRenderer

[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread calisza
Hi Tim, Thanks so much, your tips did the trick. I'm going to go the whole event dispatching route, but it's good to know how to access the parentDocument elements. And ditto on the removeChild bit - i had to laugh at myself when I read your response - it's how we learn :) thanks again, B ---