
listenerObject = new Object();
listenerObject.onImageClick = function(eventObject):Void {
// Insert your code here.
}
slideShowProInstance.addEventListener("onImageClick", listenerObject);
Event; broadcast to all registered listeners when a mouse clicks inside the content area. The event object (eventObject) contains the content area "zone" that was clicked. Returns "previous", "action" or "next".
"previous" is dispatched when the mouse clicks on the left side of the content area, and "next" when the mouse clicks on the right. Both of these are only broadcasted when contentAreaInteractivity is set to "Action Area and Navigation". "action" is dispatched when the mouse clicks the center area, and is broadcasted in both "Action Area and Navigation" and "Action Area Only" settings for contentAreaInteractivity.
The following example traces to the Output panel which zone was clicked:
listenerObject = new Object();
listenerObject.onImageClick = function(eventObject):Void {
trace(eventObject.data);
}
my_ssp.addEventListener("onImageClick", listenerObject);