User Guide
340 Chapter 6: Components Dictionary
DataSet.removeItem()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.removeItem([item])
Parameters
item
The item to be removed. This parameter is optional.
Returns
A Boolean value. Returns true if the item was successfully removed; otherwise, returns false.
Description
Method; removes the specified item from the collection, or removes the current item if
the
item parameter is omitted. This operation is logged to DataSet.deltaPacket if
DataSet.logChanges is true.
Example
The following code, attached to an instance of the Button component, removes the current
item in the DataSet object named
usersData that resides on the same Timeline as the
Button instance.
on(click) {
_parent.usersData.removeItem();
}
See also
DataSet.deltaPacket
, DataSet.logChanges
DataSet.removeItemAt()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
DataSetInstance.removeItemAt(index)
Parameters
index
A number greater than or equal to 0. This number is the index of the item to remove.