« Back to slideshowpro.net
SlideShowPro Help Wiki
Recent changes / Search

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Director

SlideShowPro Director Hosting

SlideShowPro ThumbGrid

Extras

Screencasts

SlideShowPro for Flash
onNavButtonEnabled()
Page last modified by tdominey on April 17, 2008, at 06:31 AM

Usage

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

Description

Event; broadcast to all registered listeners when the forward or back navigation buttons have been enabled. Event object contains the strings "previous" (the minus button) and/or "next" (the plus button) to indicate which button was enabled.

Example

The following example traces which button was enabled to the Output window:

listenerObject = new Object();
listenerObject.onNavButtonEnabled = function(eventObject):Void {
	if (eventObject.data=="previous") {
		trace("previous button enabled");
	} else if (eventObject.data=="next") {
		trace("next button enabled");
	}
}
my_ssp.addEventListener("onNavButtonEnabled", listenerObject);


© 2008 Dominey Design Inc. All Rights Reserved.
About | Contact | Privacy policy | License agreements