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

onImageFormat()

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

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