Prepending Elements to the Beginning of an Array: the unshift() method
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var aEmployees:Array = ["A", "P", "C", "H"];
aEmployees.unshift("R", "H", "L");
trace(aEmployees.toString());
}
}
}
Related examples in the same category