# Flash link problem

**URL:** <https://forum.kirupa.com/t/flash-link-problem/216620>\
**Category:** flash\
**Created:** [February 19, 2007, 2:39am UTC](https://forum.kirupa.com/t/flash-link-problem/216620 "2007-02-19T02:39:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![everythingafter](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/everythingafter/32/3325_2.png) [@everythingafter](https://forum.kirupa.com/u/everythingafter)\
**Post date:** [February 19, 2007, 2:39am UTC](https://forum.kirupa.com/t/flash-link-problem/216620/1 "2007-02-19T02:39:43Z")

</div>

I have a swf that contains five thumbnails which are links and open  
basic html pages with more information. The problem I’m having is that  
I can click on any thumbnail and the html page loads fine on all five  
pictures, but when you then try to open a second thumbnail, the page  
does nothing. So basically, the swf is only good for one click and  
then you have to reload to view info. on the other pics. This won’t do  
of course. I haven’t had this problem with other swf pages I’ve  
created. Please help. - Jeremy

:look:  
Below is the code I’m using:

Actionscript for the Buttons to control look of new window: (this is  
attached to each button and the html and target names are correctly  
modified for each thumbnail):

on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “missions\_bergmans.htm”;  
target\_winName = “bergmans”;  
width = 400;  
height = 300;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 1;  
resizable = 0;  
//sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar,  
location, directories, status, menubar, scrollbars, resizable);

}

Actionscript for the Frame1 in an “actions” layer:

\_root.openWinCentre = function (url, winName, w, h, toolbar, location,  
directories, status, menubar, scrollbars, resizable) {  
getURL (“javascript:var myWin; if(!myWin || myWin.closed){myWin =  
window.open(’” + url + “’,’” + winName + “’,’” + “width=” + w +  
“,height=” + h + “,toolbar=” + toolbar + “,location=” + location +  
“,directories=” + directories + “,status=” + status + “,menubar=” +  
menubar + “,scrollbars=” + scrollbars + “,resizable=” + resizable +  
“,top=’+((screen.height/2)-(” + h/2 + “))+’,left=’+((screen.width/2)-  
(” + w/2 + “))+’” + “’)}else{myWin.focus();};void(0);”);
