# Get index of current array

**URL:** https://forum.kirupa.com/t/get-index-of-current-array/326626
**Category:** Uncategorized
**Created:** [December 31, 2011, 12:57am UTC](https://forum.kirupa.com/t/get-index-of-current-array/326626 "2011-12-31T00:57:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GeekTweak\_0](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@GeekTweak\_0](https://forum.kirupa.com/u/GeekTweak_0)
#### Post date: [December 31, 2011, 12:57am UTC](https://forum.kirupa.com/t/get-index-of-current-array/326626/1 "2011-12-31T00:57:35Z")

</div>

```auto
Array[ArrayVar].addEventListener(MouseEvent.CLICK, funct1);

funct1(e:MouseEvent){
     var curIndex = ***....?***
}

```

\*\*Say that ArrayVar is equal to 3 at the time funct1 is triggered. in funct1 i want the variable curIndex to be set as 3. How would i go about this?

thanks in advance.
