Dataset.locatebyid() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

DataSet.locateById()

Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSetInstance.locateById(id)
Parameters
A string identifier for the item in the collection to be located.
id
Returns
A Boolean value.
Description
Method; positions the current iterator on the collection item whose ID matches
. This
id
method returns
if the specified ID can be matched to an item in the collection;
true
otherwise, it returns
.
false
Example
The following example uses
to search for an item in the current collection
DataSet.find()
whose
and
fields contain the values
and 105, respectively. If found,
name
id
"Bobby"
is used to get the unique identifier for that item, and
DataSet.getItemId()
is used to position the current iterator at that item.
DataSet.locateById()
384
Components Dictionary

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

This manual is also suitable for:

Flash 8

Table of Contents