It requires Macromedia Flash 8 and AS 2.0.
You can use it as is or you can customize the visual appearence by editing de library items marked with " [editable] " in gallery.fla file. Aditional customization can be achieved by editing only the variables wich are commented (you can find them usualy in the constructor function) in the .as files. You will have to recompile the project in order to see the changes.
The data provider is a xml file, named data.xml. This file may contain only 3 tags: album, gallery and picture. The rule is that any album can contain only other albums or galleries, a gallery can contain only picture tags. The picture tag contains only the big picture path string. An album will be displayed in a Folder View and a gallery in a Thumbs View. Any album or gallery tag will have a "name" attribute. The picture tag has also a description and thumbnail path attributes and it contains the path of the big picture. The xml file should be easy to write. Anyway if is not well written , an alert box with a certain error message will appear in your browser and based on this you should know what went wrong.
Check out the sample for a better understanding of the gallery. |