# For i\<array.length Not Doing Whole Array

**URL:** <https://forum.kirupa.com/t/for-i-array-length-not-doing-whole-array/294086>\
**Category:** flash\
**Created:** [August 8, 2009, 1:32am UTC](https://forum.kirupa.com/t/for-i-array-length-not-doing-whole-array/294086 "2009-08-08T01:32:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pi3rc3](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pi3rc3](https://forum.kirupa.com/u/pi3rc3)\
**Post date:** [August 8, 2009, 1:32am UTC](https://forum.kirupa.com/t/for-i-array-length-not-doing-whole-array/294086/1 "2009-08-08T01:32:09Z")

</div>

this problem is blowing my mind i have a for loop that i want to go through my entire array but it seems to not be counting the last element in the arraay!

```auto
for(var i:int=0; i<gridControl.game.blockG.length; i++){
trace(i +" "+gridControl.game.blockG.length);
}

```

and the last line of code it spits out is “83 84” meaning that there are 84 items in the array but it only ran through to 83…i dont understand why its doing this.
