  | |  | _array.splice multidimensional | _array.splice multidimensional
2004-02-19 - By Ashley Rajaratnam
Back Is it possible to use the splice method on a multidimensional array?
If so do you know what the syntax is?
Ive tried various things like the below but can 't get it to work
current_array = [[2],[]];
for (k=0;k <10;k++) {
current_array[0][k] = k;
current_array[1][k] = k;
}
var i = 3;
current_array.splice(([0],[i]),1);
trace(current_array);
any ideas?
cheers ash
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104691
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |