splice( ) can both remove elements from and add elements to an array. : Splice : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Splice »

 

splice( ) can both remove elements from and add elements to an array.


 


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


        var letters:Array = ["a""b""c""d""e""f"];
        letters.splice(13);
        letters.splice(1);
        
        trace(letters)// a
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Splice