
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.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| data | An 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.
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);