Use the Array constructor allows you to specify the length of the new array. : Length : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Length »

 

Use the Array constructor allows you to specify the length of the new array.


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var topTen:Array = new Array(10);
        // creates an array with 10 spaces.
        trace(topTen.length);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Length