
listenerObject = new Object();
listenerObject.onGalleryData = function(eventObject):Void {
// Insert your code here.
}
slideShowProInstance.addEventListener("onGalleryData", listenerObject);
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.
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);

