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
onImageFormat()
Page last modified by tdominey on June 01, 2009, at 06:50 AM

Usage

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

Description

Event; broadcast to all registered listeners when an image or video is formatted. The event object (eventObject) contains the following properties.

w
(Number) The formatted width of slideshow content.
h
(Number) The formatted width of slideshow content.
wo
(Number) The original width of slideshow content.
ho
(Number) The original height of slideshow content.
x
(Number) The pre-alignment x-axis position of slideshow content (use onImageAlign for actual placement).
y
(Number) The pre-alignment y-axis position of slideshow content (use onImageAlign for actual placement).

Example

The following example publishes the formatted width and height to the Output panel:

listenerObject = new Object();
listenerObject.onImageFormat = function(eventObject):Void {
     trace("Width=" + eventObject.data.w + " Height=" + eventObject.data.h);
}
my_ssp.addEventListener("onImageFormat", listenerObject);

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