# Working with index in array

**URL:** https://forum.kirupa.com/t/working-with-index-in-array/306776
**Category:** flash
**Created:** [March 22, 2010, 11:05am UTC](https://forum.kirupa.com/t/working-with-index-in-array/306776 "2010-03-22T11:05:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RebeccaLessay](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@RebeccaLessay](https://forum.kirupa.com/u/RebeccaLessay)
#### Post date: [March 22, 2010, 11:05am UTC](https://forum.kirupa.com/t/working-with-index-in-array/306776/1 "2010-03-22T11:05:36Z")

</div>

Hi, me again 😛

You will be seeing me a lot on this forum during my internship XD

So here’s the question:

Right now I have an 5x5 field in an array.  
I’m now searching (for what I thought was easy) a command to check the indexes around the currently clicked index. To put it to script:  
myArray.[clickedIndex -1] is emptyBlock or myArray.[clickedIndex +5] is emptyBlock etc.

I’m sure this is not the correct script, but google refuses to cooperate with me.
