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

galleryData

Event Object Type: net.slideshowpro.slideshowpro.SSPDataEvent
SSPDataEvent.type property = net.slideshowpro.slideshowpro.SSPDataEvent.GALLERY_DATA
Language Version: ActionScript 3.0
Player Version: Flash Player 9.0.0.0

Dispatched once at the beginning of a slideshow after XML data has been successfully loaded and parsed into a readable array.

Properties

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
dataAn object containing data for the loaded gallery


The data object contains a multidimensional array with the following inside:

[[albumObject,[imageObjectArray]]]

Each albumObject contains the same properties delivered by ALBUM_DATA, while the imageObjectArray is an array of image objects containing the same properties delivered by IMAGE_DATA.

Example

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

import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
	if (event.type=="galleryData") {
		trace(event.data[2][0].title);
	}
}
my_ssp.addEventListener(SSPDataEvent.GALLERY_DATA, onSlideShowData);

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

import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
	if (event.type=="galleryData") {
		trace(event.data[2][1].length);
	}
}   
my_ssp.addEventListener(SSPDataEvent.GALLERY_DATA, onSlideShowData);

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

import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
	if (event.type=="galleryData") {
		trace(event.data[2][1][4].caption);
	}
}
my_ssp.addEventListener(SSPDataEvent.GALLERY_DATA, onSlideShowData);

Page last modified by tdominey on March 03, 2009, at 03:20 PM
© 2010 Dominey Design Inc. All Rights Reserved.
About | Merchandise | Contact | Privacy policy | Legal | Licensing