Visit SlideShowPro.net  Community Forums
SlideShowPro Help Wiki
  

SlideShowPro Standalone

Extra customization options

Here's a list of some of the 'extra' things you can modify that are unique to SlideShowPro Standalone.

Alternate button styles

Embedded in the SWF are four alternate navigation button styles you can use. SlideShowPro uses its own icons by default, but you can change this to the "Quartz" and/or "Pearl" button styles by doing the following.

First, open param.xml in an ASCII/HTML text editor, and at the top you'll see this:

<customParams                
	navButtonStyle = "Default"
/>

Change this value to "Quartz Large", "Quartz Small", "Pearl Large" or "Pearl Small". Save the XML document, and reload your slideshow to see the alternate styles. Note that these alternate styles use graphical elements, and thus are unaffected by changes to the navButtonColor parameter.

Overriding param.xml

As covered in the Parameters section, you can assign parameters with either an external XML file or through flashvars. You can actually do both though if you need to override values in the XML file. For example, you could assign a different xmlFilePath than what's in param.xml, like so:

var flashvars = {
	paramXMLPath: "param.xml",
	initialURL: escape(document.location),
	xmlFilePath: "http://mydomain.com/otherxml.xml"
}

Standalone will then use the value of xmlFilePath instead of the value entered in param.xml.

Note: Flash treats ampersands (&) as delimiters when reading FlashVars, so if you assign a value that includes an ampersand (like a URL for xmlFilePath) you will need to use a redirect URL, like one generated through Tiny URL.

Assigning start album

The SlideShowPro player has a setStartAlbum() method that can be used to assign which album (and optionally which piece of content contained therein) a slideshow should start with. To use it, you assign these variables:

startAlbumID
The id of the album the slideshow should start with.

startContentID
The id of the content inside the album (assigned through startAlbumID) that should be loaded first. This parameter is purely optional. Excluding it will load the first piece of content.

To use these, first make sure your albums in the XML file have id attributes (see the images.xml files in the "Examples" folder for an example). Also assign id attributes to img elements if you want to. Borrowing from our SWFObject examples above, you'd assign the variables like so:

var flashvars = {
    startAlbumID: "ssp2",
    startContentID: "1020304",
    paramXMLPath: "param.xml",
    initialURL: escape(document.location)
}

Page last modified by tdominey on August 16, 2010, at 11:52 AM
© 2010 Dominey Design Inc. All Rights Reserved.
About | Merchandise | Contact | Privacy policy | Legal | Licensing