Visit SlideShowPro.net  Community Forums
SlideShowPro Help Wiki
Recent changes / Search

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Standalone

SlideShowPro Director

SlideShowPro Director Hosting

ThumbGrid

SlideShowPro for Flash
onGalleryData()
Page last modified by tdominey on May 22, 2008, at 05:29 AM

Usage

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

Description

Event; broadcast to all registered listeners when the XML data has successfully parsed into an array. The event object (eventObject) contains the following multidimensional array:

[[albumObject,[imageObjectArray]]]

Each albumObject contains the same properties delivered by the onAlbumData() event object, while the imageObjectArray is an array of image objects containing the same properties delivered by the onImageData() event object.

Example

The following example traces the title of the third album to the Output panel:

listenerObject = new Object();
listenerObject.onGalleryData = function(eventObject):Void {
   trace(eventObject.data[2][0].title);
}
my_ssp.addEventListener("onGalleryData", listenerObject);

The following example traces the number of images in the third album to the Output panel:

listenerObject = new Object();
listenerObject.onGalleryData = function(eventObject):Void {
   trace(eventObject.data[2][1].length);
}
my_ssp.addEventListener("onGalleryData", listenerObject);

The following example traces the caption of the fifth image in the third album to the Output panel:

listenerObject = new Object();
listenerObject.onGalleryData = function(eventObject):Void {
   trace(eventObject.data[2][1][4].caption);
}
my_ssp.addEventListener("onGalleryData", listenerObject);


© 2010 Dominey Design Inc. All Rights Reserved.
About | Merchandise | Contact | Privacy policy | Legal | Licensing