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 December 30, 2009, at 11:30 AM

Usage

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

Description

Event; broadcast to all registered listeners when an image is loaded.

The eventObject contains all img attributes (and their values) from the XML data loaded by SlideShowPro for Flash. Because the object is created automatically, you can include additional (non-supported) attributes if you have additional data you wish to use outside of SlideShowPro for Flash. "Supported" attributes (ones used by the component) include:

caption
(String) The caption of the current image
title
(String) The title of the current image
id
(String) The id of the current image
link
(String) The hyperlink of the current image
number
(Number) The image's numerical position
pause
(Number) The imagePause XML override value of the current image
src
(String) The file name of the current image
target
(String) The hyperlink target of the current image
tn
(String) The image's thumbnail URL
vidpreview
(String) The video preview URL

Example

The following example sends the caption of the loaded image to the Output panel:

listenerObject = new Object();
listenerObject.onImageData = function(eventObject):Void {
	trace(eventObject.data.caption);
}
my_ssp.addEventListener("onImageData", listenerObject);


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