User Guide
296 Chapter 6: Components Dictionary
■ removeItems A series of items has been deleted.
■ updateItems A series of items needs refreshing.
■ sort The data has been sorted.
■ updateField A field in an item must be changed and needs refreshing.
■ updateColumn An entire field’s definition in the data provider needs refreshing.
■ filterModel The model has been filtered, and the view needs refreshing (reset the scroll
position).
■ schemaLoaded The field’s definition of the data provider has been declared.
• firstItem The index of the first affected item.
• lastItem The index of the last affected item. The value equals firstItem if only one item is
affected.
• removedIDs An array of the item identifiers that were removed.
• fieldName A string indicating the name of the field that is affected.
For more information, see “EventDispatcher class” on page 415.
Example
In the following example, a handler called listener is defined and passed to
addEventListener() as the second parameter. The event object is captured by the
modelChanged handler in the evt parameter. When the modelChanged event is broadcast, a
trace statement is sent to the Output panel.
listener = new Object();
listener.modelChanged = function(evt){
trace(evt.eventName);
}
myList.addEventListener("modelChanged", listener);
DataProvider.removeAll()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.removeAll()
Parameters
None.
Returns
Nothing.