# List component selectedItem position

**URL:** <https://forum.kirupa.com/t/list-component-selecteditem-position/319089>\
**Category:** Uncategorized\
**Created:** [February 8, 2011, 8:58pm UTC](https://forum.kirupa.com/t/list-component-selecteditem-position/319089 "2011-02-08T20:58:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxelcat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/maxelcat/32/2854_2.png) [@maxelcat](https://forum.kirupa.com/u/maxelcat)\
**Post date:** [February 8, 2011, 8:58pm UTC](https://forum.kirupa.com/t/list-component-selecteditem-position/319089/1 "2011-02-08T20:58:49Z")

</div>

Hi

I have a list box of mp3s which populates via xml. When the user clicks on a song I want a “Stop” button to pop up next to the name of that song in the list box. Ideally I want to get the coordinates of the field in the list box that the user has just clicked on.

I set an eventListener like this:

```auto
songs_list.addEventListener(Event.CHANGE, playSong);

```

and then in the function playSong I do things like this:

```auto

e.currentTarget.y; //gives the y coord or the whole component
e.currentTarget.selectedItem.stageX //undefined
e.currentTarget.selectedItem.localX //undefined
e.currentTarget.selectedItem.x //undefined

```

Can anybody please advise how i can get the x and y coordinates of the selectedItem in the list.

Thanks in advance

E
