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

onImageAlign()

Usage

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

Description

Event; broadcast to all registered listeners when an image or video is aligned. 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 x-axis position of slideshow content.
y
(Number) The y-axis position of slideshow content.

Example

The following example publishes the alignment to the Output panel:

listenerObject = new Object();
listenerObject.onImageAlign = function(eventObject):Void {
     trace("xpos=" + eventObject.data.x + " ypos=" + eventObject.data.y);
}
my_ssp.addEventListener("onImageAlign", listenerObject);

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