Querys in Flash?

So this is what I am wondering: Lets say I have a page display people’s name and when you click on a name information such as age, height, and weight are displayed. In Flash, can you create the same thing? I know with displaying data from a database you have to have dynamic text boxes set up to load the info but can you have it set up so you can load a name from a database and THEN click that name to have it load the other info? I am not really having much luck finding any examples on this so I am wondering if it is even possible.

If anyone does know of a way, please link to a example or tutorial please!!!