Hi,
You can use a Javascript call directly from the getURL method to open a sized window directly from a flash button.....
Code:
on (release) {
getURL ("javascript:NewWindow=window.open('http://ntdesigns.net','newWin','width=400,height=300,left=200,top=200,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No'); NewWindow.focus(); void(0);");
}
Edit**** The above should be a single line of code. Many forum boards have trouble parseing JS code.
If you have lots of buttons that will open JS pop up windows, it might be better to write a function and call it from a button.......
Code:
function launchNewWin(url,wdth,hdth,windowNewName){
if(windowNewName==undefined){
var windowNewName="newWin";
}
getURL
("javascript:window.open(\""+url+"\",\""+windowNewName+"\",\"width="+wdth+",heig
ht="+hdth+",top=\"+((screen.availHeight/2)-("+hdth/2+"))+\",left=\"+((screen.ava
ilWidth/2)-("+wdth/2+"))); void(0);");
}
Just declare it on frame1 of your flash movie and whenever you want to launch a new window, just write....
Code:
_root.launchNewWin("myUrl.htm", 550,400,"myNewWindow");
Regards
NTD
Bookmarks