Click on a button and display some details below it


I have a list of people names below which I want to display some information about them. So this is the way I want the animation to work…

I have a list of names:

  1. John
  2. Pam
  3. Paula
  4. Bob
  5. Martin

Now when I click on any one name, the names below it have to move down creating a space for information to be displayed about the person who had been clicked on. Is this possible with actionscript? Also, if i click on another name, the previously displayed information should disappear and the new information displayed. How do i do this? Can anyone point me to a link or tutorial?

Also can this be done by fetching information from a text file? Please let me know.