Hi Guys,
Can someone help me with the following problem.
I want a user to open multiple windows when they click on links from a flash movie.
What i mean is that when someone clicks on a button it opens one window, then they keep that open and click on another button which opens another window so it allows to compare the two movies. This must happen for around 5 windows.
This is what i have done so far:
Added this to the buttons:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “thameshighres.html”;
target_winName = “test”;
width = 440;
height = 364;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
Then i put the following code in the actions layer in the first key frame
Movieclip.prototype.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);”);
}
Please help!
Thanks!
Sameer.