you can't read the contents of a folder with actionscript, the swf doesn't run on the server, it runs on the client machine. i suggest you create a web service, or other server app, that returns list of the relevent files.
if you create something that returns text that looks like xml (.net web...