
Event Object Type: net.slideshowpro.thumbgrid.TGThumbEvent
TGThumbEvent.type property = net.slideshowpro. thumbgrid.TGThumbEvent.SWITCH_THUMB_GROUP
ThumbGrid Version: ThumbGrid 1 and 2
Language Version: ActionScript 3.0
Player Version: Flash Player 9.0.0.0
Dispatched when the grid interface switches to a new thumb group.
| Property | Value |
|---|---|
| bubbles | false |
| cancelable | false; there is no default behavior to cancel. |
| num | The numerical position of the thumbnail group being switched to. |
| isFirst | Boolean. Returns true if num is the first thumbnail group. Returns false otherwise. |
| isLast | Boolean. Returns true if num is the last thumbnail group. Returns false otherwise. |
The following example traces thumb group activity to the Output panel.
import net.slideshowpro.thumbgrid.*;
function onThumbEvent(event:TGThumbEvent) {
trace("Switching to thumb group: " + event.num + " Is first? " + event.isFirst + " Is last? " + event.isLast);
}
my_tg.addEventListener(TGThumbEvent.SWITCH_THUMB_GROUP, onThumbEvent);