MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 320

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

Advertisement

return(item.empType != "management");
}
See also
DataSet.filtered
DataSet.find()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.find(searchValues)
Parameters
searchValues
current sort.
Returns
Returns
if the values are found; otherwise, returns
true
Description
Method; searches the current view of the collection for an item with the field values specified by
. Which items are in the current view depends on any current filter and range
searchValues
settings. If an item is found, it becomes the current item in the DataSet object.
The values specified by
current sort (see the example below).
If the current sort is not unique, the record (transfer object) found is nondeterministic. If you
want to find the first or last occurrence of a transfer object in a nonunique sort, use
DataSet.findFirst()
Conversion of the data specified is based on the underlying field's type. For example, if you
specify
["05-02-02"]
using the date's
DataType.setAsString()
the date's
DataType.setAsNumber()
Example
This example searches for an item in the current collection whose
values
and 105, respectively. If found,
"Bobby"
identifier for the item in the collection, and
current iterator on that item.
var studentID:String = null;
studentData.addSort("id", ["name","id"]);
// Locate the transfer object identified by "Bobby" and 105.
320
Chapter 6: Components Dictionary
An array that contains one or more field values to be found within the
searchValues
or
DataSet.findLast()
as a search value, the underlying date field is used to convert the value
method is used.
false
must be in the same order as the field list specified by the
.
method. If you specify
DataSet.getItemId()
DataSet.locateById()
.
[new Date().getTime()]
and
fields contain the
name
id
is used to get the unique
is used to position the
,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents