Removing the First Element of an Array: shift() method removes the element from the beginning of the array. : shift « Array « Flash / Flex / ActionScript
Removing the First Element of an Array: shift() method removes the element from the beginning of the array.
package{ import flash.display.Sprite;
public class Main extends Sprite{ public function Main(){
var aEmployees:Array = ["A", "P", "C", "H"];
var sAnEmployee:String = String(aEmployees.shift());
trace(aEmployees.toString());
trace(sAnEmployee);