
Event Object Type: net.slideshowpro.thumbgrid.TGThumbEvent
TGThumbEvent.type property = net.slideshowpro. thumbgrid.TGThumbEvent.ROLLOUT_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 is rolled-out with the mouse pointer.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| num | The numerical position of the currently active thumbnail. |
| isFirst | Boolean. Returns true if num is the first image in an album. Returns false otherwise. |
| isLast | Boolean. Returns true if num is the last image in an album. Returns false otherwise. |
| data | An object containing data for the slideshow content associated with the thumbnail. |
The data object is a copy of the same data object broadcasted by the SlideShowPro Player in its albumData and imageData events. When clicking on thumbnails on ThumbGrid's Album screen, the imageData object is included. When clicking on albums on the Gallery screen, the albumData object is included. See both of the above SlideShowPro Player events for more information on the object properties included.
The following example traces the thumbnail that was rolled-out to the Output panel.
import net.slideshowpro.thumbgrid.*;
function onThumbEvent(event:TGThumbEvent) {
trace("Rollout thumbnail: " + event.num + " Is first? " + event.isFirst + " Is last? " + event.isLast);
}
my_tg.addEventListener(TGThumbEvent.ROLLOUT_THUMB, onThumbEvent);
The following example sends the caption for the image/video associated with the rolled-out thumbnail to the Output panel:
import net.slideshowpro.thumbgrid.*;
function onThumbEvent(event: TGThumbEvent) {
if (event.type=="rolloutThumb") {
trace(event.data.caption);
}
}
my_tg.addEventListener(TGThumbEvent.ROLLOUT_THUMB, onThumbEvent);