Flash Player 7.
DisplayBox.GetSelected([ColumnID],[isSelected])
ColumnID Optional; The ID of the column header you want
the values for returned. Passing a ColumnID of sIDX will return the internal
ID of the selected line and passing a value of sID will return the actual display
position in the DisplayBox. default: sIDX
isSelected Optional; True if you want to return the items
that are selected or false if you want the unselected ones. default: true
Array of the requested data.
Function; Returns an array of all the selected or unselected items based on the isSelected parameter.
In this example we will return all the selected items for the DisplayBox and store the results in an array.
var myArray=new Array();
var cnt:Number;
myArray=myDisplayBox.GetSelected("sIDX");
for (cnt=0;cnt<myArray.length;cnt++)
{
//loop thru all the selected items and do something
DoSomethingWith(myArray[cnt]);
}
Author