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 April 17, 2008, at 06:24 AM

Usage

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

Description

Event; broadcast to all registered listeners when a mouse pointer passes in and out of a loaded image's area. The event object returns the string "over" when the pointer has rolled-over an image, and "out" when rolled-out.

Example

The following example sends an alert to the Output window when the mouse has rolled-over and rolled-out of an image:

listenerObject = new Object();
listenerObject.onImageRoll = function(eventObject):Void {
	if (eventObject.data=="over") {
		trace("Mouse over");
	} else if (eventObject.data=="out") {
		trace("Mouse out");
	}
}
my_ssp.addEventListener("onImageRoll", listenerObject);


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