Visit SlideShowPro.net  Community Forums
SlideShowPro Support Wiki
  

Back
Products

ThumbGrid


Using ThumbGrid without Director

Additional support

  1. Community forums
  2. Email support staff

Company

  1. Products
  2. About SlideShowPro
  3. News
  4. Follow SlideShowPro on Twitter
ThumbGrid

currentThumb

Event Object Type: net.slideshowpro.thumbgrid.TGThumbEvent
TGThumbEvent.type property = net.slideshowpro. thumbgrid.TGThumbEvent.CURRENT_THUMB
ThumbGrid Version: ThumbGrid 1 and 2
Language Version: ActionScript 3.0
Player Version: Flash Player 9.0.0.0

Dispatched every time a thumbnail on the Album screen is made active.

Properties

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
numThe numerical position of the currently active thumbnail.
isFirstBoolean. Returns true if num is the first image in an album. Returns false otherwise.
isLastBoolean. Returns true if num is the last image in an album. Returns false otherwise.
dataAn object containing data for the image or video associated with the current thumbnail.


The data object is a copy of the same data object broadcasted by the SlideShowPro Player in its imageData event. See the imageData documentation for more information on object properties.

Example

The following example traces the currently active thumbnail to the Output panel.

import net.slideshowpro.thumbgrid.*;
function onThumbEvent(event:TGThumbEvent) {
   trace("Current thumbnail: " + event.num + " Is first? " + event.isFirst + " Is last? " + event.isLast);	
}
my_tg.addEventListener(TGThumbEvent.CURRENT_THUMB, onThumbEvent);

The following example sends the caption for the image/video associated with the current thumbnail to the Output panel:

import net.slideshowpro.thumbgrid.*;
function onThumbEvent(event: TGThumbEvent) {
	if (event.type=="currentThumb") {
		trace(event.data.caption);
	}
}
my_tg.addEventListener(TGThumbEvent.CURRENT_THUMB, onThumbEvent);


Page last modified by afrmx on January 26, 2012, at 01:15 AM
© 2011 SlideShowPro. All Rights Reserved.