Set an element with an index that doesn't exist : Array Declaration : Array Flash / Flex / ActionScript examples


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

 

Set an element with an index that doesn't exist


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var letters:Array = ["a""b""c"];
        letters[5"f";
        
        trace(letters);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Array Declaration