How do i create a button in action script?

I’m trying to create a little menu for my photoalbum with the different album names. It reads a xml file and stores the names of the albums in a array. I just can’t figure out how to create the buttons in action script so it can be dynamic.

for (i=0; i < albums.length; i++) {
trace(“Album Name:” + albums*);
txtAlbums.text = txtAlbums.text + "
" + albums*;
//what next to create a button with the album name?