Open URL

We can open a new browser window or pop-up window by clicking on the thumbnails. This is how the code will look:

url_array=["photo.jpg", "http://www.flashloaded.com", "http://www.fontsforflash.com"];
tnailer.onThumbRelease=function(mc)
{
    getURL(url_array[mc.no], "_blank");
}

Note:

In this example we are defining a string array of URLs which we wish to open and we then define an
onThumbRelease event that will open these URLs in a new browser window. The second parameter of the getURL method specifies the window or HTML frame where the content will be loaded (see Flash MX help for more info). In this case we are using "_blank" so the content will always open in a new window.

To see another example using the Thumbnailer component, take a look at the fla called th_demo2.fla included in the thumbnailer_demo file.