Flipping the Order of Your Array Using reverse() : reverse « Array « Flash / Flex / ActionScript






Flipping the Order of Your Array Using reverse()

 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var myArray:Array = [12,6,17,4,39];
        myArray.reverse();
        trace(myArray); // Displays: 39,4,17,6,12
    }
  }
}

        








Related examples in the same category