Dataset.removeitemat() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

DataSet.removeItemAt()

Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSetInstance.removeItemAt(index)
Parameters
A number greater than or equal to 0. This number is the index of the item to remove.
index
Returns
A Boolean value indicating whether the item was removed.
Description
Method; removes the item at the specified index. The indices after the removed index collapse
by one.
This method triggers the
In addition, it triggers the
properties. The
result
property of the event) can be removed. By default, the
event listener is specified for the
An event listener can stop the item from being removed by listening for the
and setting the
result
function removeItem(evt_obj:Object):Void {
// Don't allow anyone to remove the item with customerId == 0.
evt_obj.result = (evt_obj.item.customerId != 0);
}
event with the event name
modelChanged
DataSet.removeItem
property is used to determine if the item (referenced by the
removeItem
property of the event to
event, which contains the
property is set to
result
event, the item is removed by default.
, as shown in the following example:
false
DataSet.removeItemAt()
.
removeItems
and
result
item
item
. If no
true
event
removeItem
397

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents