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


Flash / Flex / ActionScript examples » Array » Reverse »

 

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
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Array
» Reverse