Just wondering, can you just copy an array into a new location like this:
newarray = oldarray;
like you would do when defining any variable?
you need to use slice() to create a new copy of an array... the folowing illustrates the case:
my_array=new Array(1,2,3,4,5); my_copy=my_array; my_copy.length=3; trace("my_array = {"+my_array+"}"); trace("my_array = {"+my_copy+"}"); delete my_array,my_copy; my_array=new Array(1,2,3,4,5); my_copy=my_array.slice(); my_copy.length=3; trace("my_array = {"+my_array+"}"); trace("my_array = {"+my_copy+"}");
output:
my_array = {1,2,3} my_array = {1,2,3} my_array = {1,2,3,4,5} my_array = {1,2,3}
oh, by the way, welcome to 12stone 
thx for the welcome
it's nice to find a worthy replacement for the godlike were-here, i hope Jess gets it online again some time in the (hopefully near) future...
there's a lot of very negative talk going around saying it will go the way of flashpad... oh well... might as well make the best of this place 
Yes.. you can.
first = new Array("a","b","c"); second = first; first = "";// just to make sure we're not creating a pointer. trace(second.join("|"));
output a|b|c
thanks, that was just what i needed! Only, i discovered that it wasn't necessary for what i wanted to do, so i actually don't need it anymore. I'll try to remember it, though, for later 