Please note: This is very buggy, and prone to some very strange errors at times. Mostly, you'll just have to go into the Terminal and invoke the script and then refresh the SWF. I set up my site as such:
- /flash - this is where my Flash SWF file would be, as well as the HTML template to load it in.
- /index.html - just loads the CGI script.
- /cgi-bin - location of CGI and variable file.
- /files - the location of my PDF directories, sorted in directories named for the variables they would load as.
- /vars - location of some text files it would just load into variables that the name of file signified.
<frameset cols="500" border="0">
<frame src="cgi-bin/loadvars.cgi">
</frameset>
[robg adds: I haven't, nor am I likely to, test this one, given my lack of knowledge of both Flash and Perl.]

