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()
Example
This example searches for the last item in the current collection whose
contain
"Bobby"
for the item in the collection, and
on that item.
var studentID:String = null;
studentData.addSort("nameAndAge", ["name", "age"]);
// Locate the last transfer object with the specified values.
// Note that the order of the search fields matches those
// specified in addSort().
if(studentData.findLast(["Bobby", "13"])) {
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.first()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.first()
Returns
Nothing.
Description
Method; makes the first item in the current view of the collection the current item. Which items
are in the current view depends on any current filter and range settings.
, the underlying date field is used to convert the value with the
["05-02-02"]
method. If the value specified is
method is used.
and
. If found,
"13"
DataSet.getItemId()
DataSet.locateById()
,
DataSet.getItemId()
[new Date().getTime()]
is used to get the unique identifier
is used to position the current iterator
,
DataSet.locateById()
DataSet component (Flash Professional only)
, the date's
and
fields
name
age
323
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?