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

imageData

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.
isFirst
(Boolean) If the asset is first in the album, this returns true. Otherwise false.
isLast
(Boolean) If the asset is last in the album, this returns true. Otherwise false.

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

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