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
of the event) can be removed. By default, the
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(eventObj:Object):Void {
// don't allow anyone to remove the item with customerId == 0
eventObj.result = eventObj.item.customerId != 0;
}
Example
This example removes an item from the data set at the fourth position:
myDataSet.removeItemAt(3);
DataSet.removeRange()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.removeRange()
Returns
Nothing.
Description
Method; removes the current end point settings specified by
current iterator.
Example
myDataSet.addSort("name_id", ["name", "id"]);
myDataSet.setRange(["Bobby", 105],["Cathy", 110]);
while(myDataSet.hasNext()) {
myDataSet.gradeLevel ="5"; // change all of the grades in this range
myDataSet.next();
event with the event name
modelChanged
DataSet.removeItem
property is used to determine if the item (referenced by the
event, the item will be removed by default.
removeItem
property of the event to
event, which contains the
property is set to
result
, as shown in this example:
false
DataSet.setRange()
DataSet component (Flash Professional only)
.
removeItems
and
result
item
property
item
, or if no event
true
event
removeItem
for the
341
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?