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

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Director

SlideShowPro Director Hosting

Extras

Screencasts

Page last modified by tdominey on April 24, 2008, at 10:42 AM

Usage

listenerObject = new Object();
listenerObject.onAlbumData = function(eventObject):Void {
     // Insert your code here. 
}
slideShowProInstance.addEventListener("onAlbumData", listenerObject);

Description

Event; broadcast to all registered listeners when an album is loaded. The event object (eventObject) contains the following properties.

id
(String) The ID of the current album
description
(String) The description of the current album
lgpath
(String) The lgpath attribute of the current album
tnpath
(String) The tnpath attribute of the current album
title
(String) The title of the current album
tn
(String) The thumbnail file path for the current album
totalImages
(Number) The total number of images in the current album

Example

The following example sends the description of the loaded album to the Output panel:

listenerObject = new Object();
listenerObject.onAlbumData = function(eventObject):Void {
     trace(eventObject.data.description);
}
my_ssp.addEventListener("onAlbumData", listenerObject);

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