Knowledge Base |
Thumbnail Slider Pro V1
(views: 13167)
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: 6552)
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
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
User Comments
Can't get this working!
All of the examples have trial components with certain instance names which get referenced then by code. Please make sure that after switching the trial version with the full version, you give an instance name to the component and either give it the same instance name as the trial had or give it another instance name but change the code to reference that new instance name.
posted by negush on 2008-12-05
@tappa34All of the examples have trial components with certain instance names which get referenced then by code. Please make sure that after switching the trial version with the full version, you give an instance name to the component and either give it the same instance name as the trial had or give it another instance name but change the code to reference that new instance name.
Call Java Script
Thanks!!
posted by raframos on 2009-11-19
Hi there, what if I want to call a Java Script Function from the thumb ?Thanks!!
Login to post your comment










What can I try next? Need this working for client ASAP!