# How do I get the value of the selected item in the peopleList component?

**URL:** <https://forum.kirupa.com/t/how-do-i-get-the-value-of-the-selected-item-in-the-peoplelist-component/43982>\
**Category:** flash\
**Created:** [February 27, 2004, 5:30pm UTC](https://forum.kirupa.com/t/how-do-i-get-the-value-of-the-selected-item-in-the-peoplelist-component/43982 "2004-02-27T17:30:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thief\_of\_Light](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@Thief\_of\_Light](https://forum.kirupa.com/u/Thief_of_Light)\
**Post date:** [February 27, 2004, 5:30pm UTC](https://forum.kirupa.com/t/how-do-i-get-the-value-of-the-selected-item-in-the-peoplelist-component/43982/1 "2004-02-27T17:30:06Z")

</div>

How do I get the value of the selected item in the peopleList component? Here’s what I am trying to do:

I am using Flash Communication Server, and I have a validation screen for username/password. Upon confirmation, I want it to connect to a stream, and load a peopleList component, listing all of the members connected to the stream. The user then has the ability to choose from one of the people in the list, hit a submit button, and the script needs the data of which person was selected.

As of now, I have tried looking into the component’s class/prototype functions. It has a function to be invoked when I click on a person, making turning its background into a selected state, but I need to receive the value of that selected item. Can anyone help? Thanks!
