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 June 01, 2009, at 06:52 AM

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

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