Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Array > reverse (Array.reverse method) | |||
public reverse() : Void
Reverses the array in place.
Availability: ActionScript 1.0; Flash Player 5
The following example uses this method to reverse the array numbers_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.
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001912.html
Comments
mbd said on Feb 15, 2006 at 10:35 AM :