User Guide
310 Chapter 6: Components Dictionary
A DataSetError exception is thrown when DataSetIterator.Unique is specified as a sort
option and the data being sorted is not unique, when the specified sort name has already been
added, or when a property specified in the
fieldList array does not exist in this data set.
Returns
Nothing.
Description
Method; creates a new ascending or descending sort for the current iterator based on the
properties specified by the
fieldList parameter. Flash automatically assigns the new sort to the
current iterator after it is created, and then stores it in the sorting collection for later retrieval.
Example
The following code creates a new sort named "rank" that performs a descending, case-sensitive,
unique sort on the DataSet object’s
"classRank" field.
myDataSet.addSort("rank", ["classRank"], DataSetIterator.Descending |
DataSetIterator.Unique | DataSetIterator.CaseInsensitive);
See also
DataSet.removeSort()
DataSet.afterLoaded
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
on(afterLoaded) {
// insert your code here
}
listenerObject = new Object();
listenerObject.afterLoaded = function (eventObj) {
// insert your code here
}
dataSet.addEventListener("afterLoaded", listenerObject)
Description
Event; broadcast immediately after the DataSet.items property has been assigned.
The event object (
eventObj) contains the following properties:
target The DataSet object that generated the event.
type The string "afterLoaded".