how to auto select the first index in a sparks List control in flex4
- by james
hi
i have a spark List control. it has a dataProvider that shows reply from twitter search.
i have created a function for change handler like this:
protected function list_changeHandler(event:IndexChangeEvent):void
{
ta.text = coverflow.selectedItem.title;
}
so, whenever i select each of the items in the List i will see the message(ta.text)
but now, instead of me manually clicking the first time, i want it to automatically click/select the first item and see the first message(ta.text)
how do i do it? ...
newbie to flex ... :p