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

onDisplayModeChange()

Usage

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

Description

Event; broadcast to all registered listeners when the Display Mode parameter changes. The event object returns the strings "Auto" or "Manual" to indicate which mode it has changed to.

Example

The following example traces Display Mode to the Output panel each time it changes:

listenerObject = new Object();
listenerObject.onDisplayModeChange = function(eventObject):Void {
	if (eventObject.data=="Auto") {
		trace("Auto mode enabled");
	} else if (eventObject.data=="Manual") {
		trace("Manual mode enabled");
	}
}
my_ssp.addEventListener("onDisplayModeChange", listenerObject);

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