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

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!