I tried myself several times to get itemFocusIn on the list but it
doesn't for some strange reason. However you can have a state variable
on the parent of the list and send that to the renderer. Depending on
the type of renderer: inline set currentState =
{outerDocument.stateNameOrWhateverYouName It}, dropin rendere you
override the data setter, and access it via
parentDocument.stateNameOrWhateverYouName in the setter.

if you want a reference to the list form the renderer try this

var parentList : List = this.parent.parent as List; 

and if you want the current selected item index try this

var parentListDataProvider:ArrayCollection = parentList.dataProvider
as ArrayCollection;
var itemIndex:int = parentList.itemRendererToIndex(this);


HTH
Claudiu




--- In [email protected], "prashant194" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> 
> I am using my custom component as item renderer of list control. The
> list displays my component very well but i have no idea how can i have
> a control over the list item which is my custom component. I want to
> change the state of my custom component whenever "itemFocusIn" event
> is fired. 
> How can i do that?
>


Reply via email to