Hi,
Most forum boards have a difficult time displaying javascript code. The code example above should be a single line of code in Flash. If you copy and paste it the way the forum board posts it, it wont work. Another method is to define a pop up function in the flash movie and call the function to initiate the pop up....
Code:
function launchNewWin(url, wdth, hdth, windowNewName) {
if (windowNewName == undefined) {
var windowNewName = "newWin";
}
getURL("javascript:window.open(\""+url+"\",\""+windowNewName+"\",\"width="+wdth+",height="+hdth+",top=\"+((screen.availHeight/2)-("+hdth/2+"))+\",left=\"+((screen.availWidth/2)-("+wdth/2+"))); void(0);");
}
//*******Notice********
//the getURL method using javascript should be a single line of code.
//forum boards often post this incorrectly formatted
Just declare it on frame1 of your flash movie and when ever you want to launch a new window, just write...
Code:
_root.launchNewWin("myUrl.htm", 550,400,"myNewWindow");
hope it helps
NTD
Bookmarks