Trying to list the contents of a directory using php and include the list dynamically in flash.

The script I made works fine in the debugger, but when I run it from my site the files dont show up.

I can't seem to figure out when the loadVariables is complete?

Any help/examples appreciated.

-don