User Guide
DataSet.skip() 407
Example
The following example selects a range of students and traces each of their names to the
Output panel:
my_ds.addItem({name:"Billy", id:104, gradeLevel:4});
my_ds.addItem({name:"Bobby", id:105, gradeLevel:4});
my_ds.addItem({name:"Carrie", id:106, gradeLevel:4});
my_ds.addItem({name:"Cathy", id:110, gradeLevel:4});
my_ds.addItem({name:"Mally", id:112, gradeLevel:3});
my_ds.addSort("name_id",["name", "id"]);
my_ds.setRange(["Bobby", 105],["Cathy", 110]);
while (my_ds.hasNext()) {
trace(my_ds.name); // Bobby..Cathy
my_ds.next();
}
See also
DataSet.addSort(), DataSet.hasNext(), DataSet.next(), DataSet.removeRange(),
DataSet.removeSort()
DataSet.skip()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSetInstance.skip(offSet)
Parameters
offSet An integer specifying the number of records by which to move the iterator position.
Returns
Nothing.
Description
Method; moves the current iterator’s position forward or backward in the collection by the
amount specified by
offSet. Positive offSet values move the iterator’s position forward;
negative values move it backward.