Removing Elements from Within an Array
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var aEmployees:Array = ["A", "P", "C", "H"];
var aRemovedEmployees:Array = aEmployees.splice(2, 2);
trace(aEmployees.toString());
trace(aRemovedEmployees.toString());
}
}
}
//A,P
//C,H
Related examples in the same category