MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 321

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

// Note that the order of the search fields matches those
// specified in addSort().
if(studentData.find(["Bobby", 105])) {
studentID = studentData.getItemId();
}
// Now use locateByID() to position the current iterator
// on the item in the collection whose ID matches studentID.
if(studentID != null) {
studentData.locateById(studentID);
}
See also
DataSet.applyUpdates()
DataSet.findFirst()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.findFirst(searchValues)
Parameters
searchValues
current sort.
Returns
Returns
if the items are found; otherwise, returns
true
Description
Method; searches the current view of the collection for the first item with the field values specified
by
searchValues
range settings.
The values specified by
current sort (see the example below).
Conversion of the data specified is based on the underlying field's type. For example, if the search
value specified is
date's
setAsString()
setAsNumber()
,
DataSet.getItemId()
An array that contains one or more field values to be found within the
. Which items are in the current view depends on any current filter and
searchValues
, the underlying date field is used to convert the value with the
["05-02-02"]
method. If the value specified is
method is used.
,
DataSet.locateById()
false
must be in the same order as the field list specified by the
[new Date().getTime()]
DataSet component (Flash Professional only)
.
, the date's
321

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx

Table of Contents