all groups > flash actionscript > october 2004 >
You're in the

flash actionscript

group:

list box, selected item


list box, selected item bso_71
10/18/2004 9:22:06 PM
flash actionscript:
How can I automatically select the first item of my list box? Can I trace the list element number?

Thanks a lot!

Re: list box, selected item _jrh_
10/18/2004 9:35:26 PM
// select first item
listbox.setSelectedIndex(0);

// find selected item's element number
listbox.getSelectedIndex()

This will be helpful:
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/a
ctionscript_dictionary241.html
AddThis Social Bookmark Button