Can loadVariables load directories?

I hope this has not been posted (which with my luck it has), but I hope someone knows if a directory can be opened using loadVariables and then placed into an array or loop. I know files can be loaded individually, but I want to be able to see all the files using PHP and my .swf file. I hope this makes sense because I am some what lost. Thanks for any help. ^^

i dont know anything bout php but an easy way out could be writing the filenames on a txt or xml, load it and then load the files from the directory