- Home
- Tutorials
- Flash
- Intermediate
- How to Use the Easy Slideshow Component v1.0

Page 3 of 7
Snapshot of all parameters:
| Parameter | Description / Values | Syntax |
| dataFile | Your data file URL | mySlideshow.setDataFile (dataFile) |
| dataType | xml/txt | mySlideshow.setDataType (dataType) |
| pieces | number, not very high | mySlideshow.setPieces (pieces) |
| maskStyle | none, fade, dissolve, stripesHorz stripesVert, stripeDiag, Sweep1, movieclip, random | mySlideshow.setMaskStyle (maskStyle) |
| removalStyle | forward, backward, random, adaptive, random-random | mySlideshow.setRemovalStyle (removalStyle) |
| mcID | movieclip linkage identifier | mySlideshow.setMcID (mcID) |
| fadeStep | a number between 1 & 100 | mySlideshow.setFadeStep (fadeStep) |
| loop | true / false | mySlideshow.setLoop (loop) |
| removalDelay | time delay between piece removal | mySlideshow.setRemovalDelay (removalDelay) |
| playMode | forward, backward, random | mySlideshow.setPlayMode (playMode) |
| loadHandler | handler function triggered when a file is loaded | mySlideshow.setLoadHandler (func, path) |
| stripeH | preloader stripe height (a number) | mySlideshow.preloader.setHeight |
| dockTo | top / bottom | mySlideshow.preloader.setDock |
| fontFace | font face | mySlideshow.preloader.setFontFace |
| fontSize | font size | mySlideshow.preloader.setFontSize |
| fontColor | font color | mySlideshow.preloader.setFontColor |
| fillColor | preloader stripe color | mySlideshow.preloader.setFillColor |
| faceColor | Easy slideshow start face color | not needed |
| embedFonts | true / false | not needed |
| showBytes | true/ false | mySlideshow.preloader.setShowBytes |
How To create the data file:
You can load 2 types of data files into the Easy slideshow component, namely xml and text. These files can come from any server-side scripting language as well. The data file contains the following information:
1. totalFiles in the file list
2. currentFile (first file) to load into the slideshow.
3. total attributes of each file. (URL attribute is necessary)
4. URL attribute indicates the location of that file. If relative, it should correspond to the location of the slideshow movie.
5. Other attributes of each individual file, like title, description, etc.
Structure of the XML dataFile:
The basic structure of the xml file should be:
<files totalfiles="2" currentFile="2">
<attributes total="1">
<attribute>URL</attribute>
</attributes>
<file num="1">
<URL>myImage1.jpg</URL>
</file>
<file num="2">
<URL>myImage2.jpg</URL>
</file>
</files>
This file indicates that, there are 2 files in the file list and each file has one attribute of name "URL". Also each file element has the corresponding "num" attribute that indicates the number of that file in the file list. Also note currentFile attribute is "2", indicating that the slideshow should load the 2nd file first. The location of the individual file is given by the respective URL elements of the file element,
i.e.:- myImage1.jpg and myImage2.jpg.
Structure of the Txt dataFile:
We use &br= as a pseudo line break to display the data better.
The basic structure of the data file should be
&totalFiles=2&br=
¤tFile=2&br=
&totalAttributes=1&br=
&attribute1=URL&br=
&file1URL=myImage1.jpg&br=
&file2URL=myImage2.jpg
This file indicates simply indicates
totalFiles = 2,
currentFile = 2,
totalAttributes = 1
attribute1 = "URL"
Here we name the first attribute as "attribute1" itself. Similarly, we provide the URL of the first file as file1URL (as in file + num + attributeName). If we had another attribute say, title, we would say, file1Title respectively.
