you can use Array's filter() method to populate a new array from a specified range of objects from the principle array.
package
{
import flash.display.Sprite;
public class Test extends Sprite
{
private var minRangeIndex:uint;
private var maxRangeIndex:uint;
public function Test()
{
var myArray:Array = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I");
minRangeIndex = 1;
maxRangeIndex = 4;
var rangeArray:Array = myArray.filter(rangeCallback);
for each (var element:Object in rangeArray)
trace(element);
}
private function rangeCallback(element:Object, index:int, array:Array):Boolean
{
return (index >= minRangeIndex && index <= maxRangeIndex);
}
}
}
//traces: B, C, D, E
using the filter() method you could actually create an array with several ranges (EX: 1-4 and 8-12) from a principal array in addition to any other type of filtering you would want, such as string matches for searching.