User Guide

394 Components Dictionary
DataSet.removeItem
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
Usage 1:
var listenerObject:Object = new Object();
listenerObject.removeItem = function (eventObj:Object):Void {
// ...
};
dataSetInstance.addEventListener("removeItem", listenerObject);
Usage 2:
on (removeItem) {
// ...
}
Description
Event; generated just before a new item is deleted from this collection.
If you set the
result property of the event object to false, the delete operation is canceled; if
you set it to
true, the delete operation is allowed.
The event object (
eventObj) contains the following properties:
target The DataSet object that generated the event.
type The string "removeItem".
item A reference to the item in the collection to be removed.
result A Boolean value that specifies whether the item should be removed. By default, this
value is
true.