# How to reach an item in an Array

**URL:** <https://forum.kirupa.com/t/how-to-reach-an-item-in-an-array/332133>\
**Category:** Uncategorized\
**Created:** [February 12, 2014, 8:25am UTC](https://forum.kirupa.com/t/how-to-reach-an-item-in-an-array/332133 "2014-02-12T08:25:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avocado](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@avocado](https://forum.kirupa.com/u/avocado)\
**Post date:** [February 12, 2014, 8:25am UTC](https://forum.kirupa.com/t/how-to-reach-an-item-in-an-array/332133/1 "2014-02-12T08:25:57Z")

</div>

hello,  
i created a number of classes that contain animation and a button to start the animation. and i am loading them into an array.  
and i need to know when the last array item was pressed . so i tried to add an eventlistener to the Array in the last place like this:

```auto
_notes[12].addEventListener(TouchEvent.TOUCH, playNext);

```

but it doesnt recognize it. i tried every think i could think of…  
can anybody assist me?
