Putting an element at index Array .length creates a new element right after the current last element : Length : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Length »

 

Putting an element at index Array .length creates a new element right after the current last element


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var array:Array = new Array();
        
        array.push("val 1""val 2");
        
        array[array.length"val 3";
        
        trace(array);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Length