# Simply question (hopefully) about List component and selection

**URL:** <https://forum.kirupa.com/t/simply-question-hopefully-about-list-component-and-selection/324894>\
**Category:** flash\
**Created:** [September 14, 2011, 1:18pm UTC](https://forum.kirupa.com/t/simply-question-hopefully-about-list-component-and-selection/324894 "2011-09-14T13:18:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtFurlin](https://avatars.discourse-cdn.com/v4/letter/v/97f17d/32.png) [@vtFurlin](https://forum.kirupa.com/u/vtFurlin)\
**Post date:** [September 14, 2011, 1:18pm UTC](https://forum.kirupa.com/t/simply-question-hopefully-about-list-component-and-selection/324894/1 "2011-09-14T13:18:23Z")

</div>

I’m coding an auto-complete feature to use in flash forms.  
When you are typing (in a TextInput component) suggestions start popping in a List.  
If the user than press arrow Down, the focus is set to the list, so far so good.  
But how can I make the list first item selected as I set the focus?  
I tried using scrollToIndex(0); but didn’t work.  
The way it is now, you have to press the Down key two times to select the 1st  
item in the list, one sets the focus, the second works…  
Any ideas?  
Ty all.
