This is the thumb list class for the application. It actually forms the content_mc movieclip of MouseScrollBox class used in this file. The scrollbox helps to scroll through the thumbnails items.
The following events are dispatched by this class:
ThumbClicked - dispatched when the a thumb is clicked. The loadObj property of the event object has all the datails required to load the right image when a thumbnails is clicked. The image is retrieved as loadObj.img, the thumbnail as loadObj.thumb and the number of the thumbnail as loadObj.num.
ThumbListInit - dispatched afer the initialization of the list
new ThumbList()public thumbWidth:Number [Read Only]public thumbGap:Number [Read Only]public thumbHeight:Number [Read Only]public colNum:Number [Read Only]public totalThumbs:Number [Read Only]public scrollDirection:String [Read Only]public function init(arr:Array, width:Number, height:Number, gap:Number, col:Number, dir:String)Function called to initialize the list
arr | - array containing the paths to thumbnail images |
width | - width of the thumbnail |
height | - height of the thumbnail |
gap | - gap between the thumbnails |
col | - the number of columns |
dir | - the direction of scrolling |
public function registerListener(mc:MovieClip)Use this method to register any movieclip as a listener to this class' events
mc | - the movieclip that is to be registered |