JC Thumb Viewer - Methods
Overview | Properties | Methods | Events | XML | ActionScript 3.0 usage | User Manual
Method | Description |
addItem |
Adds a new item to the end of the list. Parameters - item:Object - the item that will be added to the list. The object passed as parameter should contain at least the URL of the external image of SWF file or the class name (linkage id) of the clip from the library as value of the property source. |
addItemAt |
Adds a new item to the list, in the position specified by the index parameter. Parameters - item:Object - the item that will be added to the list. The object passed as parameter should contain at least the URL of the external image of SWF file or the class name (linkage id) of the clip from the library as value of the property source. - index:int - the index in the list where the item will be added. If index is less than 0, the new item will be added at the beginning. If index is greater than the total number of items, the new item will be added to the end of the list. |
clearSelection | Deselects the currently selected item. |
getItemAt |
Returns the item found at the index specified as parameter. Parameters - index:int - the position of the item in the list Returns - ScrollerItemModel - a reference to the item object found at the specified index or undefined if the item doesn't exist. For more information about the properties of the ScrollerItemModel class please see the section called Class ScrollerItemModel. |
getXmlSource |
Returns the XML object corresponding to the source of the items list. Returns - XML - the source XML object containing the list of items and their properties. |
next | Selects the next item from the list. If the item is not visible, the list will be scrolled. |
previous | Selects the previous item from the list. If the item is not visible, the list will be scrolled. |
removeAll | Removes all the thumbnails from the list. |
removeItem |
Removes the specified item from the list. Parameters - item:ScrollItemModel - the item that will be removed from the list. You can get a reference to a ScrollItemModel object by calling the getItemAt() method. |
removeItemAt |
Removes the item having the index specified as parameter. Parameters - index:int - the position in the list where the item will be removed from. |
setSize |
Sets the size for the thumbnail scroller component instance. Parameters - width:Number - the new width of the scroller component - height:Number - the new height of the scroller component |
Method | Description |
addItem |
Adds a new item to the end of the list. Parameters - item:Object - the item that will be added to the list. The object passed as parameter should contain at least the URL of the external image of SWF file or the class name (linkage id) of the clip from the library as value of the property source. |
addItemAt |
Adds a new item to the list, in the position specified by the index parameter. Parameters - item:Object - the item that will be added to the list. The object passed as parameter should contain at least the URL of the external image of SWF file or the class name (linkage id) of the clip from the library as value of the property source. - index:int - the index in the list where the item will be added. If index is less than 0, the new item will be added at the beginning. If index is greater than the total number of items, the new item will be added to the end of the list. |
clearSelection | Deselects the currently selected item. |
getItemAt |
Returns the item found at the index specified as parameter. Parameters - index:int - the position of the item in the list Returns - DockItemModel - a reference to the item object found at the specified index or undefined if the item doesn't exist. For more information about the properties of the DockItemModel class please see the section called Class DockItemModel. |
getXmlSource |
Returns the XML object corresponding to the source of the items list. Returns - XML - the source XML object containing the list of items and their properties. |
next | Selects the next item from the list. If the item is not visible, the list will be scrolled. This method disregards the transition effect set on the component and only slides the items one by one. |
nextPage | Displays the next page of thumbnails using the transition effect set using the transitionEffect property. |
previous | Selects the previous item from the list. If the item is not visible, the list will be scrolled. This method disregards the transition effect set on the component and only slides the items one by one. |
previousPage | Displays the previous page of thumbnails using the transition effect set using the transitionEffect property. |
removeAll | Removes all the thumbnails from the list. |
removeItem |
Removes the specified item from the list. Parameters - item:DockItemModel - the item that will be removed from the list. You can get a reference to a DockItemModel object by calling the getItemAt() method. |
removeItemAt |
Removes the item having the index specified as parameter. Parameters - index:int - the position in the list where the item will be removed from. |
setSize |
Sets the size for the thumbnail dock component instance. Parameters - width:Number - the new width of the component - height:Number - the new height of the component |
Overview | Properties | Methods | Events | XML | ActionScript 3.0 usage | User Manual