how to auto select the first index in a sparks List control in flex4

Posted by james on Stack Overflow See other posts from Stack Overflow or by james
Published on 2010-04-11T13:06:36Z Indexed on 2010/04/11 13:13 UTC
Read the original article Hit count: 702

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about flex

Related posts about flex4