A
DataSetError
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
Returns
Nothing.
Description
Method; creates a new ascending or descending sort for the current iterator based on the
properties specified by 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
unique sort on the DataSet object's
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
The event object (
The DataSet object that generated the event.
target
The string
type
310
Chapter 6: Components Dictionary
exception is thrown when
parameter. Flash automatically assigns the new sort to the
fieldList
"classRank"
DataSet.items
) contains the following properties:
eventObj
.
"afterLoaded"
DataSetIterator.Unique
array does not exist in this data set.
fieldList
that performs a descending, case-sensitive,
"rank"
field.
property has been assigned.
is specified as a sort
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers