I am creating a dynamic slide show and need an effectice way to count the max number of images to be displayed in a single directory. My goal is to allow the end user to be able to change the images, and the number of, without having to change the code.
I have a clip made that can load any x images as long as they are named...
It uses a simple counter loop from image 1 to "MaxNumPict" initialized as 5 for now.
You get the idea. I want to predetermine how many files exist in the directory before the clip starts so that the index is dynamic.
Only idea I have is to create a text file with the MaxNumPict var. That could then just be edited upon upload of the images. Needs to be easier than this.
There has to be a simple solution...
Any and all suggestions are welcome... Please help!
[Edited by trideon on 06-01-2002 at 01:48 PM]
there is a simple solution: have a cgi or php script count these images and respond to a loadvariables call....
I know Null perl or cgi and have limited access to CGI directories on the server. Was hoping I could do it purely with action script... Thanks for suggestion all the same. If anyone could clue me in on the perl I might be able to make it happen.