package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var letters:Array = ["a", "b", "c"];
var newLetters:Array = letters.slice(0);
trace(letters); // Displays: "a,b,c"
trace(newLetters); // Displays: "a,b,c"
letters = ["d", "e", "f"];
trace(letters); // Displays: "d,e,f"
trace(newLetters); // Displays: "a,b,c"
}
}
}
a,b,c
a,b,c
d,e,f
a,b,c