Removing Elements with the delete Operator : Delete : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Delete »

 

Removing Elements with the delete Operator


 


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

        var list = ["a""b""c"];
        trace(list.length);  // 3
        delete list[2];
        trace(list.length);  // 3

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Delete