[flexcoders] How to access the List from it's ItemRenderer
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 !
Re: [flexcoders] How to access the List from it's ItemRenderer
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