May 2001
Intermediate to advanced
720 pages
23h 24m
English
Array.reverse( ) Method — reverse the order of elements in an array
Flash 5
array.reverse( )
The reverse method reverses the order of
elements in an array, swapping the last element with the first
element, the second-to-last element with the second element, and so
on.
myList = new Array(3, 4, 5, 6, 7); myList.reverse( ); // myList is now [7, 6, 5, 4, 3]
Array.sort( )
Read now
Unlock full access