# Array Problem's

**URL:** <https://forum.kirupa.com/t/array-problems/321829>\
**Category:** flash\
**Created:** [May 2, 2011, 9:19pm UTC](https://forum.kirupa.com/t/array-problems/321829 "2011-05-02T21:19:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashByDefault](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@FlashByDefault](https://forum.kirupa.com/u/FlashByDefault)\
**Post date:** [May 2, 2011, 9:19pm UTC](https://forum.kirupa.com/t/array-problems/321829/1 "2011-05-02T21:19:03Z")

</div>

Good Afternoon all,

Just a quick question about 2D arrays, you see I have a 2D array of Text

var textBlocks:Array = new Array(  
[“Hey there, Press X to continue”],  
[“How is it going?”],  
[“Well that’s about it…”]  
);  
and my program runs threw each item in the array until the last, but how do i figure out if i am on the last one or not…

when you press X it types out “How is it Going?” and when that’s finished and you press X again it types out “Well that’s about it” but in code, i can not figure out where i am in that array… any suggestion?
