Thanks Tim,

That's not quite the behavior I was looking for though - my List can not be in 
edit mode.

I figured out exactly what I needed - I had to use the indexToItemRenderer 
method of the List - hopefully this will help someone else...

Here's my List KeyDown handler:

private function myListKeyDownHandler(event:KeyboardEvent):void{
        var le:ListEvent = new ListEvent(ListEvent.ITEM_CLICK);
        var ir:IListItemRenderer =  
myList.indexToItemRenderer(myList.selectedIndex);
        le.itemRenderer = ir;
                                        
        myListClickEvent(le);

}
--- In [email protected], "flexcoder2008" <djohnso...@...> wrote:
>
> I have a List that handles a Click event - the ClickEvent takes a ListEvent, 
> and inside that handler I have access to the ListEvent's itemRenderer 
> property.
> 
> This allows me to align a button next to the row that I have clicked on.
> 
> I also want to trigger this click event when the user uses the keyboard up 
> and down arrow keys to navigate the list.
> 
> Inside my KeyDown handler I want to call my List click handler.
> 
> The trick is, how do I specify the itemRenderer for the new ListClick event 
> or get access to it?
> 
> eg. 
> 
> var le:ListEvent = new ListEvent(ListEvent.CLICK,.. .. .., myItemRenderer);
>


Reply via email to