var vegetables:Array = new Array("spinach",
"green pepper",
"cilantro",
"onion",
"avocado");
var spliced:Array = vegetables.splice(2, 2);
trace(vegetables); // spinach,green pepper,avocado
trace(spliced); // cilantro,onion
vegetables.splice(1, 0, "cilantro", "onion");
trace(vegetables); // spinach,cilantro,onion,green pepper,avocado
http://livedocs.adobe.com/flex/3/langref/Array.html#splice%28%29
星期三, 1月 06, 2010
Flex Array Insert Function ( spliced )
訂閱:
文章 (Atom)