Adding New Elements with the length Variable : Array Index : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Array Index »

 

Adding New Elements with the length Variable


 


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


        var colors = ["green""red""blue"];
        
        colors.length = 50;
        
        trace(colors)// green,red,blue,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Array Index