Visit SlideShowPro.net  Community Forums
SlideShowPro Help Wiki
  

Products

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Standalone

SlideShowPro Director

SlideShowPro Director Hosting

ThumbGrid

Additional support

  1. Community forums
  2. Email support staff

Company

  1. Products
  2. About SlideShowPro
  3. News
  4. Follow SlideShowPro on Twitter

SlideShowPro for Flash

onGalleryData()

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);


Page last modified by tdominey on May 22, 2008, at 05:29 AM
© 2010 Dominey Design Inc. All Rights Reserved.
About | Merchandise | Contact | Privacy policy | Legal | Licensing