View Full Version : Opening a new window in flash
tobynistic
10-07-2004, 02:14 PM
Ok now I need to open a new window I understand the code to do this is
on (press) {
getURL("url", "_blank,");
}
but how do I set the size of the window? I need it to be 470 x 245 px w/o scrolling.
Any help would be great.
Hi,
You would use a javascript command to open and size the new window. Here is a very nice javascript pop up code generator for just what you want............
http://flash-db.com/PopUp
tobynistic
10-07-2004, 08:46 PM
Thanks again
tobynistic
10-08-2004, 05:06 PM
NTD,
First let me thank you for the help you have given so far. I realy do appreciate it.
well I got the code from the generator that you recomended. Here it is
on (release) {
getURL ("javascript:NewWindow=window.open('../../html/identity.htm','newWin','width=470,height=245,left= 0,top=0,toolbar=No,location=No,scrollbars=No,statu s=No,resizable=No,fullscreen=No'); void(0);");
}
but for some reason it dies not open the window to the specified size. Any suggestions?
Tobyn
Hmmmm, that should work fine. I dont see anything wrong with the code, at first glance. What browser do you use? Does it work from the code generator page? You can test it there also. Are you on a Mac or a PC?
tobynistic
10-08-2004, 08:59 PM
I am on a pc.
and I am testing the site in mozilla, net Scape and IE.
I have figured it out.
The code needs a url starting with http://
THanks for your help
you can see what I have been working on if you like at www.madeyoulook.net
It is almost done :)
Tobyn
Ahhhhh, yea..... I thought you excluded the file path part on purpose........
../../html/identity.htm'
Definitly need the http link code and absolute url's make the file moveable within your site.
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.