RETURNINDEXEDARRAY
(Array.RETURNINDEXEDARRAY property)
public static RETURNINDEXEDARRAY : Number
Specifies that a sort returns an indexed array as a result of calling the
method. You can use this constant for the
method. This provides preview or copy functionality by returning an array that represents the
results of the sort and leaves the original array unmodified.
The value of this constant is 8.
Availability: ActionScript 1.0; Flash Player 7
See also
sort (Array.sort method)
reverse (Array.reverse method)
public reverse() : Void
Reverses the array in place.
Availability: ActionScript 1.0; Flash Player 5
Example
The following example uses this method to reverse the array
var numbers_array:Array = new Array(1, 2, 3, 4, 5, 6);
trace(numbers_array); // Displays 1,2,3,4,5,6.
numbers_array.reverse();
trace(numbers_array); // Displays 6,5,4,3,2,1.
shift (Array.shift method)
public shift() : Object
Removes the first element from an array and returns that element.
Availability: ActionScript 1.0; Flash Player 5
Returns
- The first element in an array.
Object
254
ActionScript classes
options
,
sortOn (Array.sortOn method)
sort()
parameter in the
sort()
numbers_array
or
sortOn()
or
sortOn()
:
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?