myDataSet.last();
while(myDataSet.hasPrevious()) {
var price = myDataSet.currentItem.price;
price = price * 0.5; // Everything's 50% off!
myDataSet.currentItem.price = price;
myDataSet.previous();
}
See also
DataSet.currentItem
DataSet.hasSort()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.hasSort(sortName)
Parameters
A string that contains the name of a sort created with
sortName
Returns
A Boolean value.
Description
Method; returns
Example
The following code tests if a sort named "customerSort" exists. If the sort already exists, it is made
the current sort by means of
created by means of
if(myDataSet.hasSort("customerSort")){
myDataSet.useSort("customerSort");
} else {
myDataSet.addSort("customerSort", ["customer"],
DataSetIterator.Descending);
}
See also
DataSet.addSort()
,
DataSet.skip()
if the sort specified by
true
DataSet.useSort()
DataSet.addSort()
,
DataSet.applyUpdates()
,
DataSet.previous()
exists; otherwise, returns
sortName
. If a sort by that name doesn't exist, one is
.
,
DataSet.useSort()
DataSet component (Flash Professional only)
.
DataSet.addSort()
.
false
327
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?