A single parameter specifying the number of elements creates a new array with the specified number of elements. : Array Declaration : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Array Declaration »

 

A single parameter specifying the number of elements creates a new array with the specified number of elements.


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        // Create a new array with four elements.
        var aEmployees:Array = new Array(4);
        
        trace(aEmployees);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Array Declaration