New window without buttons / adres

Hi,

I have build a website in Flash MX.
One button open a new website with the code:

on (press) {
getURL(“http://www.abc.nl”, “_new”);
}

Now i want that the opening website do not have a buttonbar and adresbar. How i can do that?

Please write the complete code becouse i’m not good in Flash.

Thanx.

Roland

you do that with javascript.
the real code i don’t know, but it’s like this:
open.new.window(adresbar=0; menubar=0)

look it up on site’s with code, there are a lot off these

good luck!

getURL("java script:window.open('http://www.kirupa.com','kirupa','location=0,toolbar=0');void(0);");

remove the space between java and script. =)

I have just a small question about that:

exactly what does the void(0); part do??

void specifies an expression to be evaluated without returning a value. try the script without void(0); and you’ll see… :wink:

by the way… you could use it this way too.
getURL(“javascript:void(window.open(‘url’,‘name’,‘settings’));”);

Also you can check out this tutorial for how to make borderless windows (without buttons and address bar). -> http://www.kirupa.com/developer/flash5/borderless.htm

That has all the instructions on how to do it.

Rock_star

i think it should be a new popup window, thats if u dont want any address or tool or status bars. i have used the one on kirupa site and it works great to me, try it:

on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “pics/p0.html”;
target_winName = “kirupa”;
width = 300;
height = 263;
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);
}