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:31 AM

Event Object Type: net.slideshowpro.slideshowpro.SSPDataEvent
SSPDataEvent.type property = net.slideshowpro.slideshowpro.SSPDataEvent.IMAGE_DATA
Language Version: ActionScript 3.0
Player Version: Flash Player 9.0.0.0

Dispatched immediately after slideshow content (video or image) is requested. Contains data about the content being loaded.

Properties

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
dataAn object containing data for the currently loaded image or video.


The data object 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/video.
title
(String) The title of the current image/video.
file
(String) The file name of the original image (included with SlideShowPro Director data).
id
(String) The ID of the current image/video.
link
(String) The hyperlink of the current image/video.
number
(Number) The image/video numerical position.
pause
(Number) Overrides transitionPause for the current image/video.
src
(String) The file name of the current image/video.
tags
(String) The tags assigned to the current image/video (included with SlideShowPro Director data).
target
(String) The hyperlink target of the current image/video.
tn
(String) The image/video thumbnail URL.
vidpreview
(String) The video preview URL.

Example

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

import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
	if (event.type=="imageData") {
		trace(event.data.caption);
	}
}
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA, onSlideShowData);

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