Creating the Slideshow navigation :

The Easy Slideshow Component has the following navigation based methods, using which you can load any file from the file list into the slideshow component. The methods are

Method
Description
Syntax
getFile gets the corresponding file mySlideshow.getFile (cmd, fileNum)
startAutoPlay starts autoPlay mode in the Slideshow mySlideshow.startAutoPlay ();
stopAutoPlay stops autoPlay in the Slideshow mySlideshow.stopAutoPlay ();
doLoadData starts loading the dataFile. By default the slideshow will immediately start loading the dataFile. mySlideshow.doLoadData ();

getFile: starts loading the corresponding file into the the slideshow component. Takes 2 parameters cmd, and fileNum

cmd can have these values: next, prev, first, last, current

next: loads the next file in the file list. If loop is true it will go to the last first file after the last file.

prev: loads the previous file in the file list. If loop is true it will load the last file after the first file.

first: loads the first file in the file list.

last: loads the last file in the file list.

For the above 4 values, the getFile methods does not need the second parameter.

current: loads the current file in the file list. The second parameter fileNum, specifies which file to load. Using this method the jumpMenu has been created inside the sample file(SlideshowPlayer).

Note due to the nature of the masking transitions, during a transition any calls to getFile method, will be ignored. However getFile method is available even when another file is loading.

E.g.:

// gets the next file
mySlideshow.getFile ("next");

// gets the previous file
mySlideshow.getFile ("prev");

// gets the first file
mySlideshow.getFile ("first");

// gets the last file
mySlideshow.getFile ("last");

// gets the 2nd file in the file list
mySlideshow.getFile ("current", 2);

startAutoPlay: starts autoPlay mode in the Easy Slideshow component. The time delay depends on the autoDelay parameter, which can be set with, mySlideshow.setAutoDelay (10000), // 10 seconds

E.g. :

mySlideshow.setAutoDelay (5000);
mySlideshow.startAutoPlay ();

makes the slideshow load a new file every 5 seconds.

stopAutoPlay: stops autoPlay in the Easy Slideshow Component.

E.g. :

mySlideshow.stopAutoPlay ();

Note: When the getFile method of the Slideshow is called, autoPlay is automatically stopped.

doLoadData: starts loading the dataFile in the Easy Slideshow component.

E.g.:

//set the dataType to "xml"
mySlideshow.setDataType ("xml");

//set the dataFile to "newData.xml"
mySlideshow.setDataFile ("newData.xml");

//and load this new data
mySlideshow.doLoadData ();

Will load the data in the newData.xml, and them load the current File in that file list, while still maintaining the masking transition.