# Click on a button and display some details below it

**URL:** <https://forum.kirupa.com/t/click-on-a-button-and-display-some-details-below-it/249183>\
**Category:** flash\
**Created:** [January 16, 2008, 8:23am UTC](https://forum.kirupa.com/t/click-on-a-button-and-display-some-details-below-it/249183 "2008-01-16T08:23:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vazash](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vazash](https://forum.kirupa.com/u/vazash)\
**Post date:** [January 16, 2008, 8:23am UTC](https://forum.kirupa.com/t/click-on-a-button-and-display-some-details-below-it/249183/1 "2008-01-16T08:23:14Z")

</div>

Hi,

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.

Thanks.
