all groups > macromedia flash sitedesign > october 2004 >
You're in the

macromedia flash sitedesign

group:

Set new window size using getURL ?


Set new window size using getURL ? Bagowz
10/26/2004 4:39:39 AM
macromedia flash sitedesign:
Hello all,

I'm fairly new to Flash and Action Script and I can't seem to find a solution
to the following problem.

Is there a way to pop up a new browser window set at a specific size and
without the toolbars on top with an action scriopt? I know I can use the
getURL function to start a new browser window using the _blank modifier, but
there doesn't seem to be a way to set the parameters of the new window.

Thanks in advance,
Bagowz
Re: Set new window size using getURL ? xcoldnet
10/26/2004 5:07:55 AM
hey, I know this one!! .....

on (release) {

sUrl = "products/bidoneItalian/bidoneItalian.htm";
wdth = "600";
hdth = "630";
lft = 500;
tp = 10;

getURL("javascript:window.open('"+sUrl+"','yourpage','width="+wdth+",height="+hd
th+",top="+tp+",left="+lft+

",directories=no,location=no,menubar=no,resizable=no,status=no,toolbar=yes,scrol
lbars=no');void(0);");
}


Re: Set new window size using getURL ? Bagowz
10/26/2004 6:39:10 PM
Thanks for the rapid response. I had wondered if Javascript might be
involved. Sadly, I know even less about Java than I do Action Script. But,
hopefully, I can just copy/paste your code into the appropriate place and it'll
be resolved.

I also found a nifty tool which writes the javascript for you upon entering
certain criteria. It's kind of cool. You can check it out at the following
link http://www.flash-db.com/PopUp/

Regards,
Bagowz
AddThis Social Bookmark Button