
listenerObject = new Object();
listenerObject.onLoadXML = function(eventObject):Void {
// Insert your code here.
}
slideShowProInstance.addEventListener("onLoadXML", listenerObject);
Event; broadcast to all registered listeners when an XML file is loaded. The event object (eventObject) contains a Boolean property (false, true) to indicate whether an XML file was found.
The following example sends an error message to the Output panel if an XML file was not found:
listenerObject = new Object();
listenerObject.onLoadXML = function(eventObject):Void {
if (eventObject.data == false) {
trace("XML file not found");
}
}
my_ssp.addEventListener("onLoadXML", listenerObject);