Dataprovider.getitemid() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Parameters
A number greater than or equal to 0 and less than
index
number is the index of the item to retrieve.
Returns
A reference to the retrieved item; undefined if the index is out of range.
Description
Method; retrieves a reference to the item at a specified position.
Example
The following code displays the label of the fifth item:
trace(myDP.getItemAt(4).label);

DataProvider.getItemID()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.getItemID(index)
Parameters
A number greater than or equal to 0.
index
Returns
A number that is the unique ID of the item.
Description
Method; returns a unique ID for the item. This method is primarily used to track selection.
The ID is used in data-aware components to keep lists of what items are selected.
Example
This example gets the ID of the fourth item:
var ID = myDP.getItemID(3);
322
DataProvider API
DataProvider.length
. This

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents