Access keys

ThumbController

Kind of class: class
Inherits from: LocalController
Author: Arthur Clemens
Classpath: controller.ThumbController
File last modified: Monday, 06 November 2006, 08:09:09
This demo illustrates the use of a TraverseArrayEnumerator as a "thumb pager".
The enumerator traverses a list of image ids, to be fetched with getCurrentObject, getNextObject and getPreviousObject. The "previous" and "next" buttons are activated when there is a "previous object" and "next object", respectively, otherwise they are deactivated.

Constructor

ThumbController

function ThumbController (
inTimeline:MovieClip)
Creates a new controller.ThumbController. Calls #init to initialize variables.

Class methods

main

static function main (
inTimeline:MovieClip) : Void
Main entry point, called from the Flash mTimeline.

Event handlers

onEventButtonPress

function onEventButtonPress (
e:EventButtonEvent) : Void
Called either by the thumbs or the previous/next buttons.