Visit SlideShowPro.net  Community Forums
SlideShowPro Help Wiki
  

Products

SlideShowPro for Flash

SlideShowPro for Lightroom

SlideShowPro Standalone

SlideShowPro Director

SlideShowPro Director Hosting

ThumbGrid

Additional support

  1. Community forums
  2. Email support staff

Company

  1. Products
  2. About SlideShowPro
  3. News
  4. Follow SlideShowPro on Twitter

SlideShowPro for Flash

onNavButtonEnabled()

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


Page last modified by tdominey on April 17, 2008, at 06:31 AM
© 2010 Dominey Design Inc. All Rights Reserved.
About | Merchandise | Contact | Privacy policy | Legal | Licensing