If you ask too soon, you will not know when it changed. You should ask in updateDisplayList
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of icepaco33 Sent: Wednesday, November 14, 2007 7:51 PM To: [email protected] Subject: [flexcoders] Re: How to access the List from it's ItemRenderer isItemSelected(...) always returns false because the list of ListBase(owner) doesn't have any selections : selectedItems.length = 0 selectedIndex = -1 --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , Adnan Doric <[EMAIL PROTECTED]> wrote: > > icepaco33 wrote: > > Greetings, > > I am trying to have access to the List which renderers the item from > > an item renderer. > > > > What I want basically is to be able to determine if an item is > > 'selected' from an item renderer. > > > > So I have overriden the set data prop in order to do this: > > > > override public function set data(value:Object):void > > { > > super.data = value; > > //Here I'd like to access the list to do : > > if (list.isItemSelected(value) ) > > currentState = "Selected"; > > else > > currentState = ""; > > } > > > > thanx ! > > > > > > > > > > Hello, > > Try ListBase(owner).isItemSelected(data) > > Cheers, > Adnan >

