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

Components language reference
Table of Contents

Advertisement

Description
Method; assigns the specified iterator to this DataSet object and makes it the current iterator.
The specified iterator must come from a previous call to
on the
DataSet.getIterator()
DataSet object to which it is being assigned; otherwise; a
exception is thrown.
DataSetError
Example
import mx.data.to.ValueListIterator;
myIterator:ValueListIterator = my_ds.getIterator();
myIterator.sortOn(["name"]);
my_ds.setIterator(myIterator);
See also
DataSet.getIterator()

DataSet.setRange()

Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSetInstance.setRange(startValues, endValues)
Parameters
An array of key values of the properties of the first transfer object in
startValues
the range.
An array of key values of the properties of the last transfer object in the range.
endValues
Returns
Nothing.
Description
Method; sets the end points for the current iterator. The end points define a range in which
the iterator operates. This is only valid if a valid sort has been set for the current iterator by
means of
.
DataSet.addSort()
Setting a range for the current iterator is more efficient than using a filter function if you want
a grouping of values (see
).
DataSet.filterFunc
406
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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents