
listenerObject = new Object();
listenerObject.onImageData = function(eventObject):Void {
// Insert your code here.
}
slideShowProInstance.addEventListener("onImageData", listenerObject);
Event; broadcast to all registered listeners when an image is loaded.
The eventObject contains all img attributes (and their values) from the XML data loaded by SlideShowPro for Flash. Because the object is created automatically, you can include additional (non-supported) attributes if you have additional data you wish to use outside of SlideShowPro for Flash. "Supported" attributes (ones used by the component) include:
The following example sends the caption of the loaded image to the Output panel:
listenerObject = new Object();
listenerObject.onImageData = function(eventObject):Void {
trace(eventObject.data.caption);
}
my_ssp.addEventListener("onImageData", listenerObject);