I checked out kirupa.com’s Picture Gallery tutorial which was cool.
Unfortunately it uses an array of specific images in a folder. How about searching for all JPG files in a particular folder, get the number of files and load these pictures.
Wishful Scenerio:
1- design a Flash Gallery.
2- write a backend script or two.
3- Upload the script and flash to server.
4- Take 10 pics today. Upload them to pics/ folder.
and the script tells Flash there are 10 images and Flash displays 10 thumbnails (or whatever).
The next day I may take 5 pictures. Upload 5 new pictures.
And the Flash file automatically knows there are 15 files in a folder.
So basically, I won’t be touching Flash or script for a long time.
have server side script generate the text file everytime Flash asks to do the gallery thing…
Have your Flash movie read the text file that has certain format with the number of images and file names and such…
So… First step will be modifying Kirupa’s tutorial to read the text file and convert it to the array so that it will work the same way… Once that’s done, you can generate the server side script that will create the text file…
Still working on it, but currently its fully dynamic. I add pictures and run a C++ program which auto generates the thumbnails. Let me know what you think : )
Now i just have to get this swf, to be dynamic depending on the location I give it. I have tons of albums, and I don’t want to have to have seperate swf’s for each album or everytime I add a album.
Creating engaging and entertaining content for designers and developers since 1998.