Class bgswitcher.Thumb

Description

This class fomrs the basic thumbnail of the thumblist. 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.

Field Index

imgPath, initObj

Method Index

new Thumb()
addEventListener(), loadThumb(), removeEventListener()

Constructor Detail

Thumb

public function Thumb()

Field Detail

initObj

public initObj:Object

imgPath

public imgPath:String [Read Only]
Use this property to get the path of the image that should be loaded when the thumbnail is clicked.

Method Detail

loadThumb

public function loadThumb()

Use this function to load the thumbnail image into the thumbnail. This function was used to implement a sequential loading for the thumbnails.

addEventListener

public function addEventListener()

removeEventListener

public function removeEventListener()