My Account
Bookmark and Share

Line Flash Gallery

A simple and compact flash gallery. The best solution for displaying your products, portfolios and services along with links to the detailed information. More Info

Help  >  Line Flash Gallery  >  SWF Object  >  Configuring The Gallery


Line Flash Gallery - Configuring the gallery



Starting the Work

To start working simply paste object's HTML into your page and setup xml configuration file. You can place configuration file anywhere on your server.

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 outline color is configured using the parameter <image width="150" height="120" />


Gallery images are described in the <items> </items> tag. Parameter <item source="…" thumb="…" description="…" link="…" target="…" /> contains information related to a particular image.

<items>
<item source="…" description="…" link="…" target="…"/>
<item source="…" description="…" link="…" target="…"/>
…………………………………………
</items>

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>
<imagesFolder>images/</imagesFolder>
<bgImage alpha="100" source="images/bg.jpg" />
<preloader alpha="100" usePreloader="true" />
<image

width="150"
height="120"
scaleMode="fill"
cornerRadius="0"
useBorder="true"
borderColor="0xFFFFFF"
borderThickness="1"
borderAlpha="70"
useShadow="false"
bgColor="0x0000FF"
bgAlpha="30"

/>
<caption

color="0xCCCCCC"
fontName="Arial"
fontSize="11"

/>
<scrollbar

bgColor="0xCCCCCC"
bgAlpha="70"
handleColor="0x808080"
handleAlpha="70"
arrowsColor="0xFFFFFF"
arrowsAlpha="100"
innerShadow="0"
dropShadow="10"

/>
<slideshow start="false" delay="2" />
<sounds onScroll="sound.mp3" />
<picasa user=""; albumID=""; />

</settings>

<items>
<item source="1.jpg" description="Image 1" link="http://google.com" target="_blank" />
<item source="2.jpg" description="Image 2" link="" target="_blank" />
<item source="3.jpg" description="Image 3" />
 . . .
</items>

</gallery>