Use pop( ) to remove the last element or shift( ) to remove the first element. : Pop : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Pop »

 

Use pop( ) to remove the last element or shift( ) to remove the first element.


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var letters:Array = ["a""b""c""d"];
        
        letters.splice(11);
        for (var i:int 0; i < letters.length; i++) {
            trace(letters [i]);
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Pop