Array.splice()

Availability

Flash Player 5.

Usage

my_array.splice(start, deleteCount [, value0, value1...valueN])

Parameters

start The index of the element in the array where the insertion or deletion begins.

deleteCount The number of elements to be deleted. This number includes the element specified in the start parameter. If no value is specified for deleteCount, the method deletes all of the values from the start element to the last element in the array. If the value is 0, no elements are deleted.

value An optional parameter specifying the values to insert into the array at the insertion point specified in the start parameter.

Returns

Nothing.

Description

Method; adds and removes elements from an array. This method modifies the array without making a copy.