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

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Director

SlideShowPro Director Hosting

SlideShowPro ThumbGrid

Extras

Screencasts

Page last modified by tdominey on November 07, 2008, at 11:05 AM

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

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