On my existing site I have used PHP to dynamically generate hyperlinks corresponding to a directory filled with image files.
Each hyperlink is stored as an element stored an array.
I am considering making a Flash alternative to my current site and require that it retain the same dynamic functionality.
How can I pass the array over to Flash so that it can generate the hyperlinks?
The only method I have investigated so far involves using text files to store the array element information before reading the text file contents into Flash. This does not sound like a straightforward solution and I can envisage a few potential problems this method would produce.
Can anyone give me the basic structure of how I might go about completing the task in hand?
Might it be possible to read the names of the files contained in a directory into Flash as an alternative?
Appologies if this post echos any that have gone before (it seems that variable passing questions number many

) and any help would be greatfully appreciated.