Accessibility
 
Home > Products > Flash > Support > ActionScript Dictionary
Flash Icon Macromedia Flash Support Center - ActionScript dictionary
Array.reverse

Availability
Flash Player 5.

Usage

 myArray  .reverse() 

Parameters
None.

Returns
Nothing.

Description
Method; reverses the array in place.

Example
The following is an example of using the Array.reverse method.

 var numbers = [1, 2, 3, 4, 5, 6]; 
 trace(numbers.join()); 
 numbers.reverse(); 
 trace(numbers.join()); 

Output:

 1,2,3,4,5,6 
 6,5,4,3,2,1 

To Table of Contents Back to Previous document Forward to next document