My account
Shopping cart
Knowledge base
Support


JC Thumb Viewer - Properties



Overview | Properties | Methods | Events | XML | ActionScript 3.0 usage | User Manual

Most of these properties can be set in the JCThumbViewer Panel (Window > Other Panels > JCThumbViewer Panel), also can be set from XML, using the config optional parameter.

Property Type
JCThumbViewer Panel
Description
_targetInstanceName String
yes
The instance name of the target display object that will load the large images, video or other content associated to the items. That display object will act as a loader.
alignMode String
yes
The type of horizontal and vertical alignment used for the content. Possible values are topLeft, topMiddle, topRight, centerLeft, centerMiddle, centerRight, bottomLeft, bottomMiddle, bottomRight.

The default value is topLeft.
autoPlay Boolean
yes
Specifies whether the component will automatically play a slide show by consecutively selecting the items.

If _targetInstanceName is set, the thumbnail scroller will automatically set the target display object's source property to load the content associated to the selected item.

The default value is false.
autoPlayDelay Number
yes
The time interval measured in seconds when the slide show will change the selected item.

The default value is 5 seconds.
config XML/String
no
Sets the configuration xml for the component. In this case the component will be set up using the values in the xml data and will disregard any previous settings made from the panel or by using code.

You can also set up the component using external configuration XML files. In this case you need to specify the URL to that configuration XML file.
direction String
yes
The way the items will be displayed in the scroller. Possible values are horizontal and vertical.

The default value is horizontal.
easeType String
yes
The type of easing applied for the scrolling movement of the thumbnails. Possible values are easeIn, easeOut, easeInOut and easeNone.

The default value is easeOut.
firstVisibleItem int
yes
The 0-based index of the first item visible in the thumbnail scroller.

The default value is 0.
itemHeight Number
yes
The height of the thumbnails measured in pixels.

Note: For best results make sure the itemHeight matches the actual thumbnail image height in pixels and use the "exactFit" scale mode.

The default value is 100.
items Array
no
[read-only] The list of objects representing the references to the thumbnails. Each object is of type ScrollerItemModel. For details about the ScrollerItemModel class please refer to the section called Class ScrollerItemModel.
itemSpace Number
yes
The size of the space between the thumbnails.

The default value is 5.
itemWidth Number
yes
The width of the items measured in pixels.

Note: For best results make sure the itemWidth matches the actual thumbnail image width in pixels and use the "exactFit" scale mode.

The default value is 100.
length int
no
[read-only] The number of items in the list.
margins Number
yes
The left and right side spacing of the component if the direction is set to horizontal or the top and bottom spacing if the direction is set to vertical.

The default value is 5.
navigationType String
yes
The type of navigation used to scroll the list of items. Possible values are:
  • mouseRelative - the list will slide towards the first or last item, depending on the mouse position; the navigation stops once the list has reached the correct position, depending on the mouse pointer's coordinates over the component;
  • mouseAbsolute - the list will slide towards the first or last item without stopping, until it reaches the beginning or the end of the list; the direction of the sliding is given by the mouse position over the component and the speed of the slide is given by the distance from the center of the component to the mouse position;
  • scrollBar - the navigation is done using a scrollbar;
  • none - the component will not allow navigation from user input.

The default value is mouseRelative.
scaleMode String
yes
The type of scaling applied on the content of the items (thumbnails). Possible values:
  • scaleCrop - scales the content so it fills in the entire size of the thumbnail and then crops the parts of the content that do not fit;
  • exactFit - resizes the content so that it takes the same size as the thumbnail - may distort the content if the thumbnail does not have the same size as the content;
  • maintainAspectRatio - scales the content so that it fits entirely inside the thumbnail - does not necessarily fill in the entire thumbnail;
  • crop - keeps the content at its original size and only displays a part of it, according to the thumbnail's size.

Note: Some filters will not work correctly with the scaleCrop and scale settings unless their refresh property is set to false (unchecked).

Note: For best results make sure the itemWidth and itemHeight match the actual thumbnail image width and height in pixels and use the "exactFit" scale mode.

The default value is exactFit.
selectedIndex int
yes
Set or get the index of the selected item in the list. The index is 0-based, meaning that the index of the first item is 0, the index of the second item is 1 and the index of the last item is length - 1.

The default value is 0.
selectedItem ScrollerItemModel
no
[read-only] A reference to the currently selected item. The reference is of type ScrollerItemModel and contains details about the thumbnail. For details about the ScrollerItemModel class please refer to the section called Class ScrollerItemModel.
showLabels Boolean
yes
Specifies whether the labels associated to the items will be displayed or not. For horizontal thumbnail lists, the labels will be displayed below the thumbnails. For vertical thumbnail lists, the labels will be displayed next to the thumbnails, on their right side.

The default value is false.
source XML/String
yes
The xml data containing the list of images and their information. You can also set this property from the JCThumbViewer Panel, by pasting the xml data into the source text field.

You can also set up the component using external XML files by specifying the URL of the source XML file.
transitionDuration Number
yes
The amount of time (measured in seconds) that the transition effect will use to complete.

The default duration is 0.5.
tweenType String
yes
The type if tween used when sliding the list if thumbnails. Possible values are Back, Bounce, Circular, Cubic, Elastic, Exponential, Linear, Quadratic, Quartic, Quintic, Sine and Strong.

The default value is Strong.
useSlideShowNavigation Boolean
yes
Specifies whether to display the slide show controls or not. The slide show controls are play and pause buttons used to start or pause the slide show from within the component.

The default value is false.

Overview | Properties | Methods | Events | XML | ActionScript 3.0 usage | User Manual

Thumbnail navigation component with scroller and dock views. The pack contains the .mxp install file, the documentation files and the sample files.
Thumbnail scroller and thumbnail dock views
Button mode effects (powered by FlashEff 2.0)
Filters (powered by FlashEff 2.0)
API for code manipulation
FlashEff-like configuration panel utility