![]() |
|
||||||||||
|
|||||
|
Регистрация: Jul 2008
Сообщений: 42
|
Доброе время суток. Есть компонент List у которого разрешен множественный выбор. Подскажите пожалуйста как программно выделить в списке несколько элементов, зная строковое значение каждого? Гугл и мануал не помогли, не получилось разобраться. Заранее благодарю за помощь!
|
|
|||||
|
Регистрация: May 2006
Сообщений: 125
|
selectedIndices property
selectedIndices:Array [read-write] Language version: ActionScript 3.0 Player version: Flash Player 9.0.28.0 Gets or sets an array that contains the items that were selected from a multiple-selection list. To replace the current selection programmatically, you can make an explicit assignment to this property. You can clear the current selection by setting this property to an empty array or to a value of undefined. If no items are selected from the list of items, this property is undefined. The sequence of values in the array reflects the order in which the items were selected from the multiple-selection list. For example, if you click the second item from the list, then the third item, and finally the first item, this property contains an array of values in the following sequence: [1,2,0]. Implementation public function get selectedIndices():Array public function set selectedIndices(value:Array):void See also allowMultipleSelection selectedIndex selectedItems |
|
|||||
|
Регистрация: Jul 2008
Сообщений: 42
|
Да, я то же самое читал, причем даже на русском... Но при использовании selectedIndices у меня вылетает ран тайм ошибка при использовании данных методов, причем даже при использовании примеров из мануалов...
Error #1010: Термин не определен и не имеет свойств. |
![]() |
![]() |
Часовой пояс GMT +4, время: 13:04. |
|
|
« Предыдущая тема | Следующая тема » |
|
|