Help > Promo Flash Gallery > SWF Object > Configuring The Gallery
Configuring the Gallery
An XML file is used to configure the gallery. By editing the XML file, you can add or remove gallery images as well as edit multiple appearance and behavior settings. The format of the XML file is described below.
Gallery settings are described in the <settings> </settings> tag of the XML file as follows: <parameter_name property=”…” />
For example, the thumbnail size is configured using the parameter
<thumbnail width="50" height="50"/>
<thumbnail width="50" height="50"/>
Gallery images are described in the <items> </items> tag. Parameter <item source="…" description="…" /> contains information related to a particular image.
|
<items>
<item source="…" description="…" link="…" target="…"/>
</items> <item source="…" description="…" link="…" target="…"/> ………………………………………… |
source – image file name
description – image description
link – link to the web-page
target - controls where the new document will be displayed
possible values:
- "_self" specifies the current frame in the current window
- "_blank" specifies a new window
- "_parent" specifies the parent of the current frame
- "_top" specifies the top-level frame in the current window
XML File Format
|
<gallery>
<settings> <!—Gallery parameters are described in this section-->
<imagesFolder>images/</imagesFolder> <preloader alpha="100" usePreloader="true" /> <bgImage alpha="100" source="images/bg.jpg" /> <image
align="center"
/>cornerRadius="10" scaleMode="fill" transitionEffect="fade" useShadow="true" <thumbnail
style="gray"
/> alpha="100" cornerRadius="5" size="50" color="0x808080" colorOnRollOver="0x666666" colorOnClick="0x999999" fontName="Verdana" fontSize="80" fontColor="0x000000" fontColorOnRollOver="0xffffff" fontColorOnClick="0xffffff" useShadow="true" <thumbBar
useThumbBar="true"
/> position="bottom" scrollSpeed="10" <caption
position="bottom"
/> visibleMode="onRollOver" bgAlpha ="40" color="0xFFFFFF" bgColor="0x000000" fontName="Verdana" fontSize="12" <slideshow
start="false"
/>delay="3" loop="true" stopAutoOnClick="true" <buttons
navigationButtons="true"
/> slideshowButtons="true" style="black" size="30" cornerRadius="10" color="0x333333" alpha="60" <sounds
onRollOver="sounds/over.mp3"
/>onClick="sounds/click.mp3" <picasa user="" albumID="" /> </settings> <items>
<item source="1.jpg" description="Image 1" link="" target="_blank"/>
</items>
<item source="2.jpg" description="Image 2" link="" target="_blank"/> <item source="3.jpg" description="Image 3" link="" target="_blank"/> . . . </gallery> |






