PHP + Flash Web Gallery
This project consists in 2 parts:
To build a Flash Action Script application to display a gallery of JPG or GIF pictures, or even Flash files .swf.
To create a PHP script that will set up a XML file to tell the Flash how and witch pictures to display.
1) Flash picture gallery
The flash application will read pictures from a given directory situated at a given URL.
According to any necessary parameters (to be defined by the coder), the Flash project will display a web page full of thumbnails.
The number of thumbs (thumbnails) and their size and position on the page to be defined in the parameters.
When clicking on a thumb, the Flash application will display it as one large picture instead of the thumbs. Again, size and position to be defined in parameters.
When clicking on the large picture, it will be dismissed and replaced by the thumbs.
The Flash will have Prev / Next buttons.
Button’s graphic is to be supplied by the buyer.
Buttons will have a still and a rollover state.
When viewing thumbs, these buttons will show the prev / next set of x thumbs.
When viewing a large picture, these buttons will display the prev / next large picture.
If there is no Prev or Next stuff to display, the related Prev / Next button to be invisible.
When clicking Prev / Next, a sound is to be played (supplied by the buyer)
2) PHP script
The PHP script will read a XML file to find the parameters of a given gallery. (See part 1)
It will read the name of all picture files in the gallery’s directory and will then create a XML file to store all the pictures file names in display order.
The picture’s file name will be in one of these two forms:
Plain file name; [url removed, login to view]
Featured fiile name: Title to display__anyFile name [url removed, login to view]
When a picture has a featured file name, the leftmost part that sits before the two underscore characters’ is to be displayed as the large picture title.
When a file name is like [url removed, login to view] then NO tile is to be displayed.
In all other cases, display the entire file name, without the file path.
Both the PHP script and Flash application must be reusable in any other website, without program modification.
Only the XML parameters file must be modified.
Coder will install his program within the actual website [url removed, login to view], and this stuff will replace the existing galleries in the website.