ActionScript 2.0 Components Language Reference |
|
|
|
| DataProvider API > DataProvider.getItemAt() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myDP.getItemAt(index)
index A number greater than or equal to 0 and less than DataProvider.length. This number is the index of the item to retrieve.
A reference to the retrieved item; undefined if the index is out of range.
Method; retrieves a reference to the item at a specified position.
The following code displays the label of the fifth item:
trace(myDP.getItemAt(4).label);
|
|
|
|