An array (vector) is a common-place data type, used to hold and describe a collection of elements. These elements can be fetched at runtime by one or more indices (identifying keys). A distinguishing feature of an array compared to a list is that the…
private static const NUM_LOOPS:int = 15; public function VectorTest():void { var vector:Vector.<int> = new Vector.<int>(1000000); var array:Array = new Array(1000000); var sTime:Number; sTime = getTimer(); loopArray(array); trace("Loop Ar…