property selectedIndex

(r/w) int32 selectedIndex;

Typ

Zugriff

This property sets and gets the selected index of the row. Any existing selection is overwritten with this item. If no item is selected, then the selectedIndex value is -1.
var selBox = scene.getBoxById("myListBox");
if (selBox)
{
    selBox.selectedIndex = 0; // select first row by default
}