The shift( ) method removes the first element of the array and returns its value. : Shift : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Shift »

 

The shift( ) method removes the first element of the array and returns its value.


 

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

        var letters:Array = ["a""b""c""d"];
             
        trace(letters.shift(  ));
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Shift