
listenerObject = new Object();
listenerObject.onAlbumEnd = function():Void {
// Insert your code here.
}
slideShowProInstance.addEventListener("onAlbumEnd", listenerObject);
Event; broadcast to all registered listeners when the final image in an album has been displayed and SlideShowPro engages Auto Finish Mode to decide what to do next.
The following example sends an alert to the Output panel that the current album has ended:
listenerObject = new Object();
listenerObject.onAlbumEnd = function():Void {
trace("Album end reached.");
}
my_ssp.addEventListener("onAlbumEnd", listenerObject);