# Array question

**URL:** <https://forum.kirupa.com/t/array-question/213387>\
**Category:** Uncategorized\
**Created:** [January 19, 2007, 3:25am UTC](https://forum.kirupa.com/t/array-question/213387 "2007-01-19T03:25:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![koolkrasher](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)\
**Post date:** [January 19, 2007, 3:25am UTC](https://forum.kirupa.com/t/array-question/213387/1 "2007-01-19T03:25:33Z")

</div>

i have an array of names that looks like this.  
var aNames:Array =new Array(“jack”,“mike”,“Scott”)

i have a text field called names which displays index 1 of the array.

and i have a button,when the button is pressed i want it to go to the next index of the array. anyone know how to do it?

Thanks,  
kool
