Retrieve a file name from the specific folder

Hi all,

I’m working on a photo gallery type of thing. Is there a way to retrieve file name within some folder and open it on flash by AS? What I want to do is just to specify the folder name which holds a lot of pictures and open a picture within that folder one by one. Flash is not aware of the contents of the folder but a folder name and will find out dynamically.
Thank you,