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

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

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

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