My account
Shopping cart
Knowledge base
Support

Knowledge Base

Important! All new questions are usually answered within the next business day.

Thumbnail Slider Pro V1

(views: 21007)

Thumbnail Slider is a navigation component that enables you to load a set of images,swf's or symbols from library,fed from an xml file ,through which you can scroll with the help of the arrows,or simply depending on the mouse position. Here are all known issues for Thumbnail Slider Pro V1. If you have any questions that you think we should discuss here please let us know.



How to open an url in other target window than _blank, using ThumbnailSlider

(2007-07-11 - views: 13738)
Q: How can I open an URL in a different target window than the default one (_blank) using the Thumbnail Slider component.
A: In order to open an url in a different target window than the default (_blank) one you have to modify the XML file.  Instead of having the url parameter on the XML file you should have link (which will contain your url) and the target parameter which will contain the target's name. (Example: _self, _blank, _top, etc. Do not forget the "_" underscore).
Below is how an item should look like inside the XML file:

<img thumbEvents='true' thumbnail='pictures/thumbnail/01.jpg' large='pictures/large/01.jpg' description='Master and Commander - Russell Crowe' link='http://www.google.com' target='_self'/>

Inside the fla file you should use the onReleaseThumb listener to read the parameters from the XML file when a thumbnail is pressed. The actionscript should look like below:

var listEvents = new Object();
listEvents.onReleaseThumb = function(obj:Object) {
    //get the url for this item
    getURL(obj.link, obj.target);
};
//adding the listener
//comp is the instance name of your thumbnail slider component on stage
comp.addListener(listEvents);

The attached example is implemented using the trial version of the Thumbnail Slider component so it will work only inside your Flash IDE.
Files: galery_openUrl.zip 


Back