Files and folders into swf

Any ideas how to get the content of a folder to show up in a swf using php. I´ve done this in using html + php but can´t come up with a solution for doing this into a swf.

THX