F > FListBox.getSelectedIndices |
FListBox.getSelectedIndices
지원 버전
Flash Player 6
구문
myListBox.getSelectedIndices()
매개 변수
없음
반환값
배열 또는 undefined
설명
메서드; 다중 선택 목록 상자에 현재 선택되어 있는 항목의 인덱스를 배열로 반환합니다. 선택된 항목이 없으면 undefined가 반환됩니다.
예제
다음 코드에서는 다중 선택 목록 상자인 groceryList에 현재 선택되어 있는 항목의 여러 인덱스를 배열로 반환합니다.
groceryList.getSelectedIndices();
참고 항목
FListBox.getSelectedIndex, FListBox.setSelectMultiple