
listenerObject = new Object();
listenerObject.onImageRoll = function(eventObject):Void {
// Insert your code here.
}
slideShowProInstance.addEventListener("onImageRoll", listenerObject);
Event; broadcast to all registered listeners when a mouse pointer passes in and out of a loaded image's area. The event object returns the string "over" when the pointer has rolled-over an image, and "out" when rolled-out.
The following example sends an alert to the Output window when the mouse has rolled-over and rolled-out of an image:
listenerObject = new Object();
listenerObject.onImageRoll = function(eventObject):Void {
if (eventObject.data=="over") {
trace("Mouse over");
} else if (eventObject.data=="out") {
trace("Mouse out");
}
}
my_ssp.addEventListener("onImageRoll", listenerObject);

