« Back to slideshowpro.net
SlideShowPro Help Wiki
Recent changes / Search

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Director

SlideShowPro Director Hosting

SlideShowPro ThumbGrid

Extras

Screencasts

Page last modified by tdominey on December 01, 2008, at 08:11 AM

Usage

slideShowProInstance.loadAlbum(id,number);

Parameters

id — A number for the album's numerical position in the gallery array, or a string assigned to an album in the XML file. The minimum value is 0, while the maximum is the total number of albums in your gallery (minus 1 to accommodate for zero-index).

number— The image number the requested album should begin with. The minimum value is 0, while the maximum is the total number of images in the album (minus 1 to accommodate for zero-index).

Returns

Nothing.

Description

Method; Loads in SlideShowPro the album requested through the id parameter. This method should only be used after SlideShowPro has initialized. If you are trying to load a particular album before SlideShowPro initializes (thus changing which one it starts with) use setStartAlbum() instead.

Example

The following example tells the slideshow instance to load the first image in the first album:

my_ssp.loadAlbum(0,0);

The following example instructs the SlideShowPro instance to load the "nature" album, and start with image #11:

my_ssp.loadAlbum("nature",10);

Note: to assign an id to an album in your XML file, add it as an attribute:

<album id="nature"...>


© 2008 Dominey Design Inc. All Rights Reserved.
About | Contact | Privacy policy | License agreements