Visit SlideShowPro.net  Community Forums
SlideShowPro Help Wiki
Recent changes / Search

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Standalone

SlideShowPro Director

SlideShowPro Director Hosting

ThumbGrid

Page last modified by tdominey on March 02, 2009, at 08:32 AM

Usage

listenerObject = new Object();
listenerObject.onImageClick = function(eventObject):Void {
	// Insert your code here.
}
slideShowProInstance.addEventListener("onImageClick", listenerObject);

Description

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.

Example

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);


© 2010 Dominey Design Inc. All Rights Reserved.
About | Merchandise | Contact | Privacy policy | Legal | Licensing