DataSet.modelChanged
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Description
on(modelChanged) {
// insert your code here
}
listenerObject = new Object();
listenerObject.modelChanged = function (eventObj) {
// insert your code here
}
dataSet.addEventListener("modelChanged", listenerObject)
Description
Event; broadcast when the collection changes in some way—for example, when items are
removed or added to the collection, when the value of an item's property changes, or when the
collection is filtered or sorted.
The event object (
The DataSet object that generated the event.
target
The string
type
The index (number) of the first item in the collection that was affected by
firstItem
the change.
The index (number) of the last item in the collection that was affected by the change
lastItem
(equals
firstItem
A string that contains the name of the field being affected. This property is
fieldName
unless the change was made to a property of the DataSet object.
undefined
A string that describes the change that took place. This can be one of the
eventName
following values:
String value
"addItems"
"filterModel"
"removeItems"
"schemaLoaded"
"sort"
"updateAll"
"updateColumn"
334
Chapter 6: Components Dictionary
) contains the following properties:
eventObj
"iteratorScrolled"
if only one item was affected).
Description
A series of items has been added.
The model has been filtered, and the view needs refreshing (reset scroll position).
A series of items has been deleted.
The fields definition of the data provider has been declared.
The data has been sorted.
The entire view needs refreshing, excluding scroll position.
An entire field's definition in the data provider needs refreshing.
.
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?