ActionScript, Folder Contents, and XML

Guru’s,

I have a folder containing thousands of swf files that need to be viewable from a gallery. I can manually create an xml file and read from it via AS and create a gallery. The issue is that would mean typing xml for each swf. Is there a way to create xml, from folder contents with AS? or even JSFL?

Thanks!